So I am looking to add an action on my custom list view that will take the user to create a new record in another app.
I have two methods to do this but I have questions for both.
-
First method I though of was to use strictly the API to create the relationship between the two apps. This is where I got lost and couldn’t figure out how to do this from a custom view. If someone has any ideas, can you provide an example?
-
Second would be to create an action first on the main app to establish the link between the two apps. I could then recreate the actions URL in my custom view, I have been able to do this…but seems like there might be a better way. Is there an API call that I can make to retrieve an apps available actions and retrieve the ID of that action?
Here is the code that I’ve put together for the URL on the custom view.
var kintoneSubDomain = ‘https://{subdomain}.kintone.com/k/’;
var mainAppId = {mainAppID};
var secondAppId = {secondAppID};
Link.href = kintoneSubDomain + secondAppId + ‘/edit?action={actionID}&app=’ + mainAppId + ‘&record=’ + recordID;