Base solution for your next web application
Open Closed

Return id from public async Task CreateOrEdit #5557


User avatar
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?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    20summers created

    Hi,

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

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)