Home » Microsoft » PL-400 v.2 » Which code segment should you use?
You need to add the script to populate event data on the form.
Which code segment should you use?
A. formContext.data.addOnLoad(myFunction)
B. formContext.data.removeOnLoad(myFunction)
C. formContext.data.entity.addOnSave(myFunction)
D. addOnPreProcessStatusChange
E. formContext.data.isValid()
Correct Answer: D
Explanation/Reference:
Explanation:
IsValid() gets a boolean value indicating whether a l of the form data is valid. This includes the main entity and any unbound attributes.
Description: true if a l of the form data is valid; false otherwise.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data/isvalid