Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Send Form Id id in Create Record command

$
0
0

Hi Experts,

I want to create record of a custom entity in JavaScript which I am able to do but I also want to send Form Id into it. 

How can I do that?

e.g. For entity X, I have two forms "Main1" and "Main2" 

Scenario:

if(condition){

Create record of entity X with form "Main1"

}

else{

Create record of entity X with form "Main2"

}

Code:

I am using code something like this

var objectValues= new Object();

 SDK.REST.createRecord(objectValues, "<EntityName>", callBackFuction, function (error) { alert(error.message); });


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>