Assign a record using a URL Scheme
Custom URL Schemes are a great way to open a iForm from a different application, and even carry over data from the other application and insert this data into elements within a form. The ability to open an existing record for editing is also a handy, but you can only edit records that are stored locally on the device (either records that are stored on the device after submitting, or assigned back out to a user and have been downloaded to the device).
Since the 'Edit' functionality doesn't fetch the record from the server, it would be a huge improvement to the URL Scheme capabilities to allow the URL to call on a record and assign it back to a device for editing.
The new URL Scheme action of 'Assign' would look something like this:
- iForm://?pageId=###&action=assign&recordId=###
Here is the article on using the URL scheme as it currently exists:
Thanks for your consideration.
-Brant
-
Hey Brant, this is an interesting thought and we would have to consider the permissions behind the idea. Not every user would have rights for assigning records so that could cause some trouble.
Another thought, is the app or webpage making the original call to the iForm scheme, could also deal with making the API request on behalf of the user. As long as the application or page is built using the API keys of an admin user, then you would be able to assign the record down.
I will admit, the flow seems a little clunky as you have to wait for the record(s) to be downloaded to the user device before invoking the scheme. You also have to be in a connected environment in order for the entire workflow to execute.
Any particular reason not to just create a new record on the fly and push data across? That can be done offline and no need to think about permissions our API requests.
Best,
Tony
Please sign in to leave a comment.
Comments
1 comment