Hi,
I have created a Workflow in Microsoft CRM Online that basically sends an email to a customer which a custom URL that is derived from the GUID of the actual record that is related.
I've used some to copy the GUID on the initial save and store into a custom field on the entity. Unfortunately on the initial save it does copy the GUID field until I save again (2x saves).
CODE (OnSave Event)
function AlertGUID() {
var GUIDvalue = Xrm.Page.data.entity.getId();
if (GUIDvalue != null) {
var ConfirmURL = Xrm.Page.data.entity.attributes.get("new_confirmationurl");
ConfirmURL.setValue(GUIDvalue);
}
}
Does anyone know how I can get this to happen on the initial save (and avoid clicking twice)?
Any help would be greatly appreciated.
Cheers,
Chris
*This post is locked for comments
I have the same question (0)