<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Accessing/editing variables from now agent mobile app in Mobile Apps &amp; Platform forum</title>
    <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/3071687#M11624</link>
    <description>&lt;P&gt;In case anyone was wondering, I couldn't find an OOB way to do this, so I tried my earlier post, and it seemed to work for us. Basically, all I did was the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a form view on the sc_task table that only contains the Variable Editor formatter&lt;OL&gt;&lt;LI&gt;I called ours Mobile Variables&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Create a workspace and a workspace page&lt;OL&gt;&lt;LI&gt;The workspace and page can be called whatever you want&lt;/LI&gt;&lt;LI&gt;For URL parameters, you are going to need sysId and table&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;On the workspace page, I added 2 containers&lt;OL&gt;&lt;LI&gt;The first container displays a message saying there are no variables for the ticket and is only displayed when the ticket has no variables associated with it&lt;/LI&gt;&lt;LI&gt;The second container contains the Form component and is configured to only show the form view "Mobile Variables" which I created in an earlier step and only shows when there are variables associated with the ticket&lt;OL&gt;&lt;LI&gt;I also included a save button in this container as well and set it to save the form using the Button clicked event which triggers the "[Form action] Save - Data resource" action on the form controller data resource&lt;/LI&gt;&lt;LI&gt;All you should have to do to force the form view to be the mobile variables is set the view&amp;nbsp; and forced view name to Mobile_Variables or whatever you called your view in the Form Controller in the data resources section of the UI builder&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Go to the record screen you want to add a variables tab to and add a new record screen segment&lt;OL&gt;&lt;LI&gt;For the embedded screen, you're going to want to create a mobile web screen and set the URL to the workspace page you just created with the sysId and table in the URL set to {{sys_id}} and {{sys_class_name}} respectively&lt;/LI&gt;&lt;LI&gt;If you don't have much workspace experience, you can probably use the platform view URL or a portal form view, but the workspace view seems to work better for us&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;After all that, you just need to update any actions on the screen that let you close the ticket to verify all required variables have an appropriate value before updating the ticket.&lt;OL&gt;&lt;LI&gt;This requires using the script-type action item instead of any other option&lt;/LI&gt;&lt;LI&gt;For us, we use a script include and a decision table to tell which variables are required before closing, so we already had a script set up to do this&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The steps above didn't take that much effort/time in total and seemed to work for us with a semi-final output that looked like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/394430iEDAE2430311F9BAD/image-size/large?v=v2&amp;amp;px=999" alt="image.png" title="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 12:37:35 GMT</pubDate>
    <dc:creator>Tim Preston</dc:creator>
    <dc:date>2024-10-11T12:37:35Z</dc:date>
    <item>
      <title>Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/219290#M9028</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;We have a requirement where we need to edit couple of variables before closing the catalog task from now agent mobile app.&lt;/P&gt;
&lt;P&gt;Was able to display variables on details screen but was unable to configure variables in edit button (function nor action item).&lt;/P&gt;
&lt;P&gt;Any inputs/suggestions are greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 18:16:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/219290#M9028</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-09-06T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2372035#M9831</link>
      <description>&lt;P&gt;same here&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 19:47:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2372035#M9831</guid>
      <dc:creator>Adam43</dc:creator>
      <dc:date>2022-11-03T19:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2383604#M9894</link>
      <description>&lt;UL&gt;&lt;LI&gt;Took a diversion and tried to access the result via portal and failed there too as our scripts are not working as expected on the portal view.&lt;/LI&gt;&lt;LI&gt;To achieve this, change the edit button - function type to "URL" and give your portal path to open the same record on portal instead of details screen. once you hit on the "edit" option from mobile it should take you to the portal form.&amp;nbsp; &amp;nbsp;&lt;EM&gt;e.g.:&amp;nbsp;&lt;A class="" href="https://wwwservicenow.dev.citizensbank.myshn.net/sc_task.do?sys_id={{sys_id}}&amp;amp;table=sc_task" target="gsft_link"&gt;/sc_task.do?sys_id={{sys_id}}&amp;amp;table=sc_task&lt;/A&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Try this, it may work.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:01:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2383604#M9894</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-11-15T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2384105#M9896</link>
      <description>&lt;P&gt;this is displaying, and I can edit variables that are multi-line text, but the ones i'm really hoping for are reference field variables- wanting to scan a bar code with the phone camera to bring it up into the variable field for the task.&amp;nbsp; the display is showing a magnifying glass, but it doesn't function in any way.&amp;nbsp; When there's a value already populated in one of the reference fields, I can tap the info button and it will bring up the related record though.&amp;nbsp; is this maybe some additional piece of config on the mobile?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 21:48:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2384105#M9896</guid>
      <dc:creator>Adam43</dc:creator>
      <dc:date>2022-11-15T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385143#M9900</link>
      <description>&lt;P&gt;here's what I have currently in my Now Agent, with this solution displaying.&amp;nbsp; these magnifying glasses don't function though.&amp;nbsp; I&amp;nbsp;&lt;U&gt;can&lt;/U&gt; however tap into and type in the multi-line text box (list agency specific software).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:46:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385143#M9900</guid>
      <dc:creator>Adam43</dc:creator>
      <dc:date>2022-11-16T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385214#M9903</link>
      <description>&lt;P&gt;&lt;SPAN&gt;That's the same reason we're unable to achieve the result and the link which I've sent you before is replicating the platform view on mobile but ultimately displays mobile platform view by default and is barely interactive. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually,&amp;nbsp;here's the proper URL to navigate to portal form from mobile -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;/mesp?id=form&amp;amp;sys_id={{sys_id}}&amp;amp;table=sc_task&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;compared to the previous one this will be quite interactive, and you may achieve the functionality if not just configure whatever is required on the native view i.e., on sc_task record's platform view.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 16:49:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385214#M9903</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-11-16T16:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385257#M9906</link>
      <description>&lt;P&gt;okay! so in order to have those buttons configured. You can use smart buttons and that can be done on the mobile details screen not on the portal. Here's the link -&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/quebec-mobile/page/administer/tablet-mobile-ui/task/sg-studio-config-smart-button.html" target="_blank"&gt;Configure a smart button (servicenow.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 17:29:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2385257#M9906</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-11-16T17:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2420655#M10048</link>
      <description>&lt;P&gt;Were you able to display variables that have no data in them?&amp;nbsp; I can display the variables on a catalog task, but it only displays the variables that have data in them.&amp;nbsp; It doesn't display the variables that may need to be answered on the task even if they are mandatory it doesn't display them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I display all the task variables in the now agent catalog task?&amp;nbsp; Also, how do you get an Edit button on the Catalog Task?&amp;nbsp; Did you have to create it from scratch?&amp;nbsp; Only one I see is Incident table Edit.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 21:28:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2420655#M10048</guid>
      <dc:creator>Steven Parker</dc:creator>
      <dc:date>2022-12-19T21:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423191#M10059</link>
      <description>&lt;P&gt;This is in reply on how to get the Edit button on the Catalog Task similar to Incident. Open the Mobile App Builder, select ITSM Mobile Agent, then select Incidents record screen. Scroll down the left panel until you see Edit Function Instance. You will need to create a similar structure for Catalog Task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dp11_1-1671648635678.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/227573i1B6F2DB3F3FCB73E/image-size/medium?v=v2&amp;amp;px=400" alt="dp11_1-1671648635678.png" title="dp11_1-1671648635678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please mark this reply as correct or helpful if it helped you with your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 18:50:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423191#M10059</guid>
      <dc:creator>dp11</dc:creator>
      <dc:date>2022-12-21T18:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423226#M10060</link>
      <description>&lt;P&gt;Yes, you're right! only the variables which has some date will be visible on the details screen. I've created an Edit button similar to incident edit. You need to map all action items in the created edit button -&amp;gt; Parameter screen/actions same as in incident.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 19:23:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423226#M10060</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-12-21T19:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423265#M10064</link>
      <description>&lt;P&gt;Being that catalog tasks have varying different variables (essentially each task in our system could have different variables on it).&amp;nbsp; How do you create an edit button to edit a task when each task variables could be different?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Incident has category, sub category, short description, etc...so Editing that is the same for every Incident, but a Catalog Task could have any variable on it that you can create.&amp;nbsp; So I am just confused on how you create an edit button that would allow you to populate data on a task (maybe some variables are mandatory on the task) when each task can be different.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 20:14:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2423265#M10064</guid>
      <dc:creator>Steven Parker</dc:creator>
      <dc:date>2022-12-21T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2424440#M10069</link>
      <description>&lt;P&gt;Well! We know what variables are been used on a particular catalog task and that being said, you'll have to create separate parameters and map it accordingly for each of the variable (in edit function) and hide the rest of them using mobile UI rules limiting to display only few of them based on the task OR I believe the catalog UI policies might work on the mobile as well. So, you just need to develop a proper condition on the native view that'll reflect on the mobile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might not be a feasible way to do it, but since there are no other potential ways to access variables from mobile, I just followed this.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:48:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2424440#M10069</guid>
      <dc:creator>Dharani Krishna</dc:creator>
      <dc:date>2022-12-22T17:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2424577#M10070</link>
      <description>&lt;P&gt;Yea that's just not feasible.&amp;nbsp; When you have 1,000 different catalog tasks and a 1,000 different variables, there is no way we can build this out for each variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's really disappointing in the lack of OOB functionality in the Agent app around Catalog Tasks.&amp;nbsp; Ideally you would work tasks in the app just as if you were sitting at your desk.&amp;nbsp; Some of our agents like to work tasks while they are in the field, but they aren't going to be able to at this time unfortunately.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:19:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2424577#M10070</guid>
      <dc:creator>Steven Parker</dc:creator>
      <dc:date>2023-01-24T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456208#M10155</link>
      <description>&lt;P&gt;I'm actually starting an Impact conversation around this- hoping to get some assistance with our use case.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:06:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456208#M10155</guid>
      <dc:creator>Adam43</dc:creator>
      <dc:date>2023-01-24T19:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456219#M10156</link>
      <description>&lt;P&gt;We have impact as well so let me know your results with this.&amp;nbsp; I still don't know a way to allow our ITIL users to work/edit tasks in the agent app with all the tasks having different variables on them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the ability for them to assign catalog task to themselves, but they can't work or edit the tasks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:21:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456219#M10156</guid>
      <dc:creator>Steven Parker</dc:creator>
      <dc:date>2023-01-24T19:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456239#M10157</link>
      <description>&lt;P&gt;We have the same issue.&amp;nbsp; We have catalog items that have catalog tasks with variables that need to be updated before the task can be completed.&amp;nbsp; So the mobile agent is not very useful for our technicians out in the field since they cannot update the variables to close their tasks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:39:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2456239#M10157</guid>
      <dc:creator>NBeheydt</dc:creator>
      <dc:date>2023-01-24T19:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2457524#M10160</link>
      <description>&lt;P&gt;I had thoughts around a list view of all variables belonging to one particular task- a list view on the sc_item_option_mtom table, so that each variable was a seperate record to click on.&amp;nbsp; empty ones were present, but I still need to figure a function/action to launch an edit process I think.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:41:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2457524#M10160</guid>
      <dc:creator>Adam43</dc:creator>
      <dc:date>2023-01-25T17:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2939980#M11323</link>
      <description>&lt;P&gt;It's been a few months, but did Impact or support have any solution for task variables that need to be populated showing up on catalog tasks in the Mobile Agent app?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app is actually useless to us without that functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 14:46:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/2939980#M11323</guid>
      <dc:creator>Steven Parker</dc:creator>
      <dc:date>2024-05-22T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/3064051#M11614</link>
      <description>&lt;P&gt;So, not sure if you're still trying to accomplish variables in the mobile agent. I'm running into this issue as well, but what I'm thinking of doing was something like this.&lt;/P&gt;&lt;P&gt;I would create a workspace and workspace page for the mobile agent in the UI Builder. Then I just add the form component to it and set it up. Then I'll create a custom form view called "variables" or something and only place the variable formatter on that form view and force the form component on the workspace to only show that specific view on that workspace page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in the mobile app builder, add a record screen segment on my record screen with a mobile web screen with the URL for my workspace page. This would basically add the variables for the task on a separate "tab" like the activity stream in the mobile agent. Then I just need to update my button to close the task to check for required variables and send an error message if they aren't all filled out. I already have a decision table set up for some catalog items and some script includes to check that all required variables are set before the task is closed, so that shouldn't be too much of a lift to complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems like the easiest route to me with the least amount of work since the form in the workspace will have all the same UI rules and scripts applied to it that any workspace view would have and also, seems to get around the issue of having to set up inputs on an input form screen since we won't always know which tables/conditions the variables would have, but did anyone find a better solution to this?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 20:25:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/3064051#M11614</guid>
      <dc:creator>Tim Preston</dc:creator>
      <dc:date>2024-10-03T20:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing/editing variables from now agent mobile app</title>
      <link>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/3071687#M11624</link>
      <description>&lt;P&gt;In case anyone was wondering, I couldn't find an OOB way to do this, so I tried my earlier post, and it seemed to work for us. Basically, all I did was the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a form view on the sc_task table that only contains the Variable Editor formatter&lt;OL&gt;&lt;LI&gt;I called ours Mobile Variables&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Create a workspace and a workspace page&lt;OL&gt;&lt;LI&gt;The workspace and page can be called whatever you want&lt;/LI&gt;&lt;LI&gt;For URL parameters, you are going to need sysId and table&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;On the workspace page, I added 2 containers&lt;OL&gt;&lt;LI&gt;The first container displays a message saying there are no variables for the ticket and is only displayed when the ticket has no variables associated with it&lt;/LI&gt;&lt;LI&gt;The second container contains the Form component and is configured to only show the form view "Mobile Variables" which I created in an earlier step and only shows when there are variables associated with the ticket&lt;OL&gt;&lt;LI&gt;I also included a save button in this container as well and set it to save the form using the Button clicked event which triggers the "[Form action] Save - Data resource" action on the form controller data resource&lt;/LI&gt;&lt;LI&gt;All you should have to do to force the form view to be the mobile variables is set the view&amp;nbsp; and forced view name to Mobile_Variables or whatever you called your view in the Form Controller in the data resources section of the UI builder&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Go to the record screen you want to add a variables tab to and add a new record screen segment&lt;OL&gt;&lt;LI&gt;For the embedded screen, you're going to want to create a mobile web screen and set the URL to the workspace page you just created with the sysId and table in the URL set to {{sys_id}} and {{sys_class_name}} respectively&lt;/LI&gt;&lt;LI&gt;If you don't have much workspace experience, you can probably use the platform view URL or a portal form view, but the workspace view seems to work better for us&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;After all that, you just need to update any actions on the screen that let you close the ticket to verify all required variables have an appropriate value before updating the ticket.&lt;OL&gt;&lt;LI&gt;This requires using the script-type action item instead of any other option&lt;/LI&gt;&lt;LI&gt;For us, we use a script include and a decision table to tell which variables are required before closing, so we already had a script set up to do this&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The steps above didn't take that much effort/time in total and seemed to work for us with a semi-final output that looked like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/394430iEDAE2430311F9BAD/image-size/large?v=v2&amp;amp;px=999" alt="image.png" title="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 12:37:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/mobile-apps-platform-forum/accessing-editing-variables-from-now-agent-mobile-app/m-p/3071687#M11624</guid>
      <dc:creator>Tim Preston</dc:creator>
      <dc:date>2024-10-11T12:37:35Z</dc:date>
    </item>
  </channel>
</rss>

