1. Go to LCS
2. Select the VM
3. Maintain > Rotate secretes > Rotate SSL certificates
a. Takes a few minutes – may need to restart the VM
This should help!
Try something like this
1. static void validateTracDim_SMC(Args _args)
2. {
3. ItemId varItemId = ‘TestItemNameBySohaib’;
4. FieldId observedDimension = fieldNum(InventDim, InventBatchId);
5. str label = fieldPName(InventDim, InventBatchId);
6. NoYes isActive;
7.
8. ;
9. isActive = ecoResTrackingDimensionGroupFldSetup::findByDimensionGroupFieldId(InventTable::find(varItemId).trackingDimensionGroup(), observedDimension).IsActive;
10. if(isActive)
11. info(strFmt(‘%1 is active for %2’,label,varItemId));
12. else
13. info(strFmt(‘%1 is not active for %2’,label,varItemId));
14. }
Solved: How to Validate active tracking dimension for item by X++ code (dynamics.com)
This is what you need!
http://d365foe.blogspot.com/2019/07/get-individual-financial-dimension-value.html
I got something like this to work!
public class CustMultiSelectController
{
public static void main(Args _args)
{
if (!_args.record() ||
_args.dataset() != tableNum(SalesTable))
{
throw error(Error::wrongUseOfFunction(funcName()));
}
Common multiSelectionRecord;
MultiSelectionContext multiSelectionContext;
SalesTable salesTable;
multiSelectionContext = _args.multiSelectionContext();
if (multiSelectionContext)
{
multiSelectionRecord = multiSelectionContext.getFirst();
while (multiSelectionRecord)
{
select forupdate firstonly salesTable
where salesTable.RecId == multiSelectionRecord.RecId;
info(strFmt(“%1”, salesTable.SalesId));
multiSelectionRecord = multiSelectionContext.getNext();
}
}
}
}
User d365fo.tools
Install with Powershell
Install-Module -Name d365fo.tools
e.g.: Import-D365ExternalUser -Id “user” -Name “user” -Email “user@email.com”
This should help!
This helped me!