How to get id of last Post

I create a new Post of a Location (for storage). I need to populate another field based upon the id (key) of that new post. Example: the new post has an id of 25. The LocationId will be "L"+id or L25. I have the Put API created already but it needs the id of the new Location. How can I access the id of the new location I created to populate the LocationId? Everything else is done and working, verified with Postman.

Best Answers

  • cansubcansub ✭✭ ✭✭
    Accepted Answer
    Hi,
    I have solved this issue by returning the ID from the Post and then issuing a Put command that adds the "L" for Location, giving me "L22" for example. Apologies for not closing this.

Answers

  • cansubcansub ✭✭ Member ✭✭
    Accepted Answer
    Hi,
    I have solved this issue by returning the ID from the Post and then issuing a Put command that adds the "L" for Location, giving me "L22" for example. Apologies for not closing this.
Sign In or Register to comment.