Custom field sync up is not happening properly in cloud Instance

Originally asked by Uday Bhaskar on 10 July 2023 (original question)


Hi Team,

We have a field type in Server side (PCFU - SiL script custom field) and cloud side (Text Field (single-line))

When we are trying to sync up the data from this field type (PCFU - SiL script custom field) which is available in the server to the field type Text Field (single-line) which is in Cloud instance, but sync up is not happening properly with the expected data in cloud similar to server for that field type(Text Field (single-line)) and we see sync up is happening with double quotes to field values (β€œβ€œ) with starting the value and ending the value. I have highlighted with yellow color in the below screenshot please refer to the same.

Please check and confirm, we don’t want double quotes(β€œβ€œ) with starting the value and ending the value, empty value.

Regards,

Uday Bhaskar


Answer by Syed Majid Hassan on 10 July 2023

Let us say you receiving the data in the following variable:

replica.customFields."XYZ".value.value

and then assigning it to the custom text field.

If this looks similar to what you have, then try this please:

replica.customFields."XYZ".value.value.replaceAll("\"","")

Please let me know if this works for you by marking the answer as accepted.

Thanks

Majid


Answer by Uday Bhaskar on 12 July 2023

Hi Majid,

Thanks, It is working fine

Regards,

Uday Bhaskar


Comments:

Syed Majid Hassan commented on 12 July 2023

Great! Thanks for the update

Answer by Uday Bhaskar on 10 July 2023

Hi Syed Majid Hassan

Thanks for the info.

Please confirm do i need to make changes in outgoing or incoming script?

Regards,

Uday Bhaskar


Comments:

Syed Majid Hassan commented on 10 July 2023

Incoming,