Job to get cust DimensionAttributeValueSetItem or sales order DimensionAttributeValueSetItem

static void Job3(Args _args)
{
CustTable custTable ;
DimensionAttributeValueSet DimensionAttributeValueSet;
DimensionAttributeValueSetItem DimensionAttributeValueSetItem;
DimensionAttributeValue DimensionAttributeValue;
DimensionAttribute DimensionAttribute;

while select * from custTable
where custTable.AccountNum == “‪‪‪ELC-02310-00288”

join RecId from DimensionAttributeValueSet
where DimensionAttributeValueSet.RecId == custTable .DefaultDimension
join RecId, DisplayValue from DimensionAttributeValueSetItem
where DimensionAttributeValueSetItem.DimensionAttributeValueSet == DimensionAttributeValueSet.RecId
join RecId from DimensionAttributeValue
where DimensionAttributeValue.RecId == DimensionAttributeValueSetItem.DimensionAttributeValue
join RecId, Name from DimensionAttribute
where DimensionAttribute.RecId == DimensionAttributeValue.DimensionAttribute

&& DimensionAttribute.Name == “Sales_man”
// &&DimensionAttribute.Name == “Location”

{
info(DimensionAttribute.Name+ “—-“+ DimensionAttributeValueSetItem.DisplayValue);
}
}

Leave Comment

Your email address will not be published. Required fields are marked *