Hi @Anonymous ,
Can you try the following code?
With(
{
//Assuming Complaint Table is stored as Gallery on screen. Textbox is also fine, replace if needed
ProductLookUpID : If(!IsBlank(ThisRecord.Purchase),
LookUp(Purchases, PurchaseID = ThisRecord.PurchaseId, ThisRecord.ProductID), Blank())
},
With(
{
ProductTypeLookUpID: If(!IsBlank(ProductLookUpID),
LookUp(Product, ProductID = ProductLookUpID, ThisRecord.ProdTypeID), Blank())
},
If(!IsBlank(ProductTypeLookUpID),
UpdateContext({varProdType: LookUp(ProdType, ProdTypeId = ProductTypeLookUpID, ThisRecord.ProdTypeName) }),
UpdateContext({varProd: Blank() })
)
)
);
Please make field changes and column name wherever required.
Hope this helps