How can I make records editable on the now agent mobile app from a custom applet?

Chad27
Tera Expert

Hello,

We are digging into using the now agent mobile app. I have created a few applets, including one that scans our asset tags and pulls up the asset record on our mobile devices. I am running into one issue, once we pull up those asset records why am I not able to edit them? Using the mobile device on other apps such as the built in incident management section I am able to edit incidents using the 3 dot button in the top right of the app. Has anyone else ran into this before? If so how cant I edit the asset records from the app?

 

Thanks.

1 ACCEPTED SOLUTION

Luiz Lucena
Mega Sage

Basically, you will be adding an Action Item, which will have Item Parameters -> Writeback for each field you want to edit + the sys_id.

Once you save the form below:

find_real_file.png

 

You will see Item Parameters -> Writeback under Related Links:

Create one for each field you want to edit in the mobile.

find_real_file.png

I did those by watching the ootb Edit Incident. So, tried to name the fields as the ootb.

Those are simple, only the name and the field type.

 

Once you're done with that, next step is to Action within the Function. Don't forget to associate this with the one you created in the step above.

find_real_file.png

Add the conditions (might be different for you, if customized):

find_real_file.png

 

Once you save this form, next step is to create the UI parameters and Action parameters mappings.

find_real_file.png

Below, two examples as a reference:

Sys ID, change the form view to Default, instead of mobile view, so you have more fields in the screen.

Some fields are pre-filled, I just had to fill those underlined in red.

find_real_file.png

Once you do that for each field you want to edit in the app, is time to add the Action parameters mappings, these are very simple. 

You are going to choose the UI parameter you created above and map to the action you did earlier.
When you click the New button (below) you will only three fields, one is already filled, the other two is apple to apple. 

 

find_real_file.png

 

Once done, time to map actually create the button in the app. Go back to the application you want to add the Edit button, click the Details tab, then Functions then the + icon. In the popup window, choose a label and select the function you just created.

find_real_file.png

 

find_real_file.png


Hope that helps. 🙂

View solution in original post

8 REPLIES 8

Tek1
Kilo Contributor

Could you resolve the above issue? Please let me know if you could as I am facing with the same.

Were you able to resolve the issue? Please let me know as I am facing with the same issue.

HI, You do not need to attach your function to the green arrow. It should save it by itself. Provided you have set up all the write back variables correctly.

But of course you would have to attach the function to the Applet List /Form  view  function tab

Namrata3
Tera Contributor

@Luis Lucena I found your article extremely helpful and have applied this to edit User details through Mobile Agent.

I wanted to make the password field editable too but for some reason it does not show up in the Action Item set values drop down list as you can see in the below attachment.It only shows the "Password needs reset " field

Any idea what has to be done to make he Password field editable in that case?