Posts

Showing posts from February, 2023

latest dynamics 365 interview questions

Image
Q. How to pass extra value in custom page in power apps? Ans: Generally in pageInput we can define four parameter like  pageType, name, entityName, recordId. But in real senarion if we want to share extra value then we can use in pageInput parameter itself. Example : var pageInput =  { pageType: "custom", name: customPageName, entityName: executionContext.data.entity.getEntityName(), recordId: currentRecordId + "$" + recordName ; }; Above value you can retrieve in custom page onStart function like below : Set(splitParam,Split(Param("recordId"),"$")); Set(recordName,Last(FirstN(splitParam,2)).Value); Set(RecordID, Substitute(Substitute(Last(FirstN(splitParam,1)).Value, "{", ""), "}","")); Q. If I create one record that created record date is older than 3 days then I want to perform some operation with the help of business rule. example: Let's assume I have case entity form and have