Skip to main content
Group

Vlocity

Vlocity is a fast-growing cloud software company that delivers compelling industry-specific applications on the Salesforce1 Platform.
3 answers
0/9000

Hi All, 

 

I have one scenario, I am using an Omniscript, in which I am usinga save action to save the data to an assessment object, but when I am passing data as a null, it is not nullifying the existing data, instead retaining the old values. 

 

needed a solution to pass the null values to update the records 

 

Not able to store the null value in assessment object, when using save action in omniscript

 

image (3).jpg

 

Thanks in advance 

 

@Salesforce OmniStudio Developer

 

@Vlocity

 

@Sneha Khasnabis

 

  

 

#Vlocity

1 answer
  1. Jan 20, 11:31 AM

    @Pramod Jana

    • Use Set Values before the Save Action and explicitly set the field to an empty value ("")
    • Or use a Formula / DataRaptor Transform to send an empty string instead of null
    • If the field is not text, set it to a valid “blank” value (like 0 or false where applicable)

    Best practice: 

     Use a DataRaptor Load + Transform and map nulls → empty values before update. 

     That’s the only reliable way to force overwrite in OmniStudio.

0/9000

Title is kind of the issue. I don't know how to update the Body and can't seem to find it by clicking our on the Documentation. Only things I see are the Params and Header 

3 answers
  1. Nov 23, 2021, 9:13 PM

    *** Solution Here ***

     

    Hi @Sakthivel M,

     

    Thanks for replying. I managed to solve this issue. 

     

    Here is some more details in case anyone else is facing the same issue:

    • The tool was "HTTP Action" in a OmniStudio Integration Procedure. 
    • The issue was that All parameters I passed as part of the payload were not being added to the JSON body and therefore not being sent over with the request. The error message I was getting in the response was: 

    {

    "success": false,

    "info": {

    "statusCode": 400,

    "status": "Bad Request",

    "Content-Type": "application/json;charset=UTF-8",

    "Date": "Tue, 23 Nov 2021 21:07:49 GMT",

    "X-XSS-Protection": "1; mode=block",

    "Set-Cookie": "BrowserId=xxx; domain=.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000;LSKey-c$CookieConsentPolicy=0:1; domain=TEST.my.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000;CookieConsentPolicy=0:1; domain=TEST.my.salesforce.com; path=/; expires=Wed, 23-Nov-2022 21:07:49 GMT; Max-Age=31536000",

    "X-Content-Type-Options": "nosniff",

    "Cache-Control": "no-cache,must-revalidate,max-age=0,no-store,private",

    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",

    "X-Robots-Tag": "none",

    "Transfer-Encoding": "chunked"

    },

    "result": [

    {

    "message": "The request body must contain a _______ definition",

    "errorCode": "118"

    }

    ]

    }

    The solution was:

      • Add "Content-Type" to the Integration Procedure > Rest Options > Header. 
        • Example: "Content-Type": "application/json; charset=UTF-8"
      • Add Body Parameters as "Additional Input"

     

     Here is an example:

    *** Solution Here *** Hi , Thanks for replying. I managed to solve this issue.

     

    Screen Shot 2021-11-23 at 3.58.05 PM.png

0/9000

Have any of you successfully migrated to Omnistudio Core from Vlocity Packages yet? 

 

I'm really curious how much of it was automated, how much manual effort was involved, and how long it took to complete the migration.

0/9000

I'm trying to re-seed a sandbox that contains omniscripts.  OwnBackup complains, "You can not add, update or delete Element records for an active OmniScript record." 

 

So, since I want to DELETE them all to re-create them, is there a script that will deactivate them all? 

 

Or assuming each one has an "isActive" field, anyone know which objects to check?

0/9000

Introducing Salesforce Industries Health Check Analysis. 

 

Each Comms/Media/Health/... Cloud implementation deserves a Health Check run from time to time. 

Happy to announce our new SF Review App It is free to use and publicly listed in the Chrome Web Store. 

 

https://chromewebstore.google.com/detail/ippedapabpdbjpabedkkncdnbbgbnkkf?utm_source=item-share-cb

 

- Scans through org and Highlight high, medium and low-risk items across CPQ, OM, EPC, and OmniStudio. 

- View detailed information for each risk item. 

- Identify misconfigurations and vulnerabilities 

- Improve performance and scalability 

- Readiness check on migration to CPQ Standard (Core) APIs. 

- Generate a Report containing all analyses. 

- Seamless integration with Salesforce. 

- Save time 

 

Give it a shot and take your Salesforce Industries implementation to the next level 🚀 

 

Enjoy! 

 

@Vlocity @Salesforce OmniStudio Developer

 

#Salesforce #Chrome Extension  #SalesforceIndustries #CommunicationCloud #Vlocity

 

Introducing Salesforce Industries Health Check Analysis. Each Comms/Media/Health/... Cloud implementation deserves a Health Check run from time to time.

 

#Omnistudio  #CPQ  #Order Management  #Telecommunications

2 comments
0/9000

Exception: vlocity_cmt.VFActionFunctionController.ActionFunctionException Exception Type: "vlocity_cmt.VFActionFunctionController.ActionFunctionException" User-Defined Exception: true Message: "Regex too complicate

0/9000
2 answers
0/9000