- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2026 02:17 PM
I am very new to Mobile App Builder and am creating my first mobile app and I need help understanding how to create a function that is scripted and uses variables.
On the mobile app, I have a record details screen using Table A where the function is placed on the footer. When the function is tapped, it opens an input screen that accepts multiple barcode scans of asset tags. When the user is done scanning, the function needs to update a Table B in a script. The script will need the sys_id of the record from Table A and the scanned assets from the input form screen.
I'm having trouble figuring out how to capture the sys_id of the record from Table A to use in a WriteBackFunction in the action.
Can anyone help me, please
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
For anyone who might view this, Sanjay got me started but I didn't have to do what he recommended. I did create the function instance and function as he stated, but in the Action item all I did was select "Use current record as condition". Per a webinar from three years ago, I found out this will have the sys_id of the current record you are on available for use, which is all I needed to pass to the script include so I could update both tables.
Also, I didn't need to use grouped input for scanning the assets. Following the Barcode scanning webinar, I just needed to configure how many times I wanted the person to scan barcodes before they needed to submit what they had scanned for processing by the script include. We decided 25 was enough.
Here is the execution script I needed for the function's Action item:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2026 03:03 AM
Hi @gjz
Please follow the below steps
1 create function instance
2.Now, you need to create a function and link it to that function instance.
This function will accept multiple asset tag barcodes and perform the asset related process for each scanned asset.
3. You need to create a group input field that allows users to scan multiple asset tag barcodes.
4.You can retrieve those asset tags logically, as shown below. Now, you have all the scanned asset tags available for further processing.
-
Now, you can process the logic as per your requirement. For example, if you want to apply the current configuration to Table A, you can retrieve the sys_id of the record in Table A using " input.sys_id ", as this is the Data parameter.
Please refer to the screenshot below. In this example, I am using the Work Order Task table, where these configurations will be applied. You can modify it according to your requirement.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
For anyone who might view this, Sanjay got me started but I didn't have to do what he recommended. I did create the function instance and function as he stated, but in the Action item all I did was select "Use current record as condition". Per a webinar from three years ago, I found out this will have the sys_id of the current record you are on available for use, which is all I needed to pass to the script include so I could update both tables.
Also, I didn't need to use grouped input for scanning the assets. Following the Barcode scanning webinar, I just needed to configure how many times I wanted the person to scan barcodes before they needed to submit what they had scanned for processing by the script include. We decided 25 was enough.
Here is the execution script I needed for the function's Action item:
