Custom date/time mobile fields are not updating record in table

D_H
Tera Contributor

Hi everyone,

 

   I am new to the mobile development so I apologies if the issue seem trivial but I ran out of places to look for solution.

I have the following issue. I have created two custom fields From and To on time_card table with Date/time type. I have also created the fields on mobile in Mobile Time Sheets in Time card screen (type of screen is Input From Screen). I have set the variables with type Database field, attached them and connected the variable to the fields on the desktop. In short I've set them up exactly as the OOTB fields that were already on the screen. 

When I update any value in the OOTB fields and Press save the record is saved and I can see the update on the DB. If I save/update the custom fields, the record fields in the table don't update with new values. 
If however I update the custom From field for example in the record in the DB I can see the change in the mobile. So the connection is established but from the mobile I can't update the value in the DB record. I've spotted 1-2 related issues in the community but nothing concrete to this case.

The Save button on the screen is not a function, it is built-in so I can't tinker with the logic there unfortunately. There are no Actions I can apply on the screen aside from Action attributes which don't do the job.

Also I tested to add a new temporary field of different type of Date, like String. The behavior was the same. I've successfully liked fields on other screens in Field Service Mobile screens and the records were saved there in the DB.

To to summarize the issue, the custom Date fields on mobile are not updating the the record in time_card table on mobile side.

The platform version is Zurich
Mobile version of app agent is: 21.3.0(50147)

 

If anyone have encountered this issue before and have a solution than you in advance 🙂

2 REPLIES 2

Tanushree Maiti
Kilo Patron

Hi @D_H 

 

1.  Check that your user has appropriate roles for the Write ACL on the new custom field.

2. ensure using any script/rule - you are setting the backend value, not the display value

3. If using BR's advance script you are updating the value -  ensure you are not using current.update() in an after Business Rule

4. Check if  any  custom onSubmit Client Scripts not allowing to save the value for custom fields

5.  check if it is the RCA - KB2917874 Value is not getting saved in custom Field 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

D_H
Tera Contributor

hi @Tanushree Maiti I checked all the proposed solutions. On point 1, I don't have security admin rights to edit the ACL but I am admin so it should be fine. Points 2 and 3, I don't use any scripts for the moment because I need to record something first in the table record as a change and the Screen Input From does not offer scripting options, not one that will do the trick. Point 4 - no custom onSubmit client script exists I checked. I tried point 5 as well, changing the length of the fields to trigger remapping, again no luck.