Hey guys!
I have a problem with Case entity and Service Activity entity (CRM 2016, on-premise).
Actually, I have a value (name of that variable is duration, an type is Floating point number) that I calculated on Service Activity (it's not relevant right now how). And I just want to update field "gp_actualdurationminutes" on parent Case with that value.
I can get caseId of parent case through regarding field on Service Activity.
I tried with XrmServiceToolkit.Soap.updateRecord(.....) but than I get error Object doesn't support method updateRecord,
and similarly SDK.JQuery.updateRecord(....) and then there's no error, but nothing happens.
This javascript is triggered OnSave of Service Activity form, so the script is on Service Activity, and I need somehow to access Case form, but obviously I don't know how.
Is updateRecord method the only way to do this? And if so, can somebody help me how to write that function with those parameters above, id of case= caseId, value to set=duration, entity= incident, field to update= gp_actualdurationminutes