This question has been flagged
1 Reply
3682 Views

Dear all,


I would like to either update an existing record or create a new record if not existing.

Now I am wondering if there is a better way than to a search for a certain ID and if !=0 then run create RPC?


Is there an easy RPC that if I provide an ID it performs and update and if not, it creates a new record?

Thanks in advance!       

Avatar
Discard
Best Answer

Hi, 

AFAIK, there's no function that can be applied to create a record if it does not exist or update it if it exists. 

the only way is to search it first, then  call create or write according to the search result.

Regards.

Avatar
Discard