Open Closed

Return id from public async Task CreateOrEdit #5557


0
20summers created

I am posting the data via

_activitiesService.createOrEdit( activity ).done

How do I post the data and get the resulting record Id from createOrEdit?


2 Answer(s)
  • 0
    20summers created

    Hi,

    just saw this topic after some more search - Should hopefully work

    #4608@48ad01a2-9501-4a6a-897e-7675b2040d4b

  • 0
    ryancyq created
    Support Team

    You can access the result from the service call using the following code.

    _activitiesService.createOrEdit(activity)
      .done(function(result){
        // handle result from the service
      });
    

    You can follow #4608@48ad01a2-9501-4a6a-897e-7675b2040d4b to include Id in the result.