Skip to main content

#Vlocity14 discussing

I was trying to test out the OmniscriptBaseMixin for my custom LWC that I created, but everytime I try to implement it, it does not work. This is the code:  import { LightningElement } from 'lwc';

import { OmniscriptBaseMixin } from 'omnistudio/omniscriptBaseMixin';

 

export default class TestOmniMixin extends OmniscriptBaseMixin(LightningElement) {

    connectedCallback() {

        console.log('testOmniMixin omniJsonData:', this.omniJsonData);

    }

}    Essentially when I try to add it to my omniscript and I click on preview it just loads forever. And never starts the code. I am not sure what is wrong with it.     Thank you to anyone that can help!    

3 answers
  1. Dec 19, 2025, 5:21 PM

    Hi @Madeline Knecht

    - OmniscriptBaseMixin only works inside an OmniScript runtime. If you access omniJsonData in connectedCallback, the preview hangs  

     

    • Use the LWC only inside an OmniScript
    • Don’t use connectedCallback
    • Access data in renderedCallback instead
    • Make sure the OmniScript type is LWC and you’re previewing the OmniScript, not the LWC

    import { LightningElement } from 'lwc';

    import { OmniscriptBaseMixin } from 'omnistudio/omniscriptBaseMixin';

    export default class TestOmniMixin extends OmniscriptBaseMixin(LightningElement) {

    renderedCallback() {

    console.log('omniJsonData:', this.omniJsonData);

    }

    }

0/9000

I'm in an org using Omnistudio managed package, which means my LWCs do not have the ability to extend NavigationMixin, which would allow the use of OmniNextStep() 

 

According to

https://help.salesforce.com/s/articleView?id=xcloud.os_create_and_map_data_inside_the_custom_lwc_element.htm&type=5

 

 

it appears the only thing I am able to do is bubble an event to pass data. My LWC has a button, and the result of that button has data get bubbled up via an event. 

 

I would like my Omniscript to navigate to the next available step (Or a specific one if necessary) but do not know how to do that. Is it possible? Why would the managed package not give us the ability to let a standalone lwc navigate us to any extent? 

 

#Omnistudio  #Vlocity  #LWC

0/9000

Hi everyone,

I have an OmniScript with 10 steps/screens, and each screen has a custom LWC Continue button.

My requirement is:

  • User is currently on Step 7.
  • Step 7 has another button (e.g., Edit Personal Information).
  • When the user clicks this button, I navigate the user back to Step 2.
  • The data on Step 2 is already populated, so the user can review/update it.
  • When the user clicks the Continue button on Step 2, I want to navigate the user directly back to Step 7, instead of continuing through Steps 3 → 4 → 5 → 6.
  • All navigation buttons are implemented using custom LWC components.

Question:

Is there a supported way in OmniScript/LWC to navigate directly from Step 2 back to a specific later step (Step 7) of the same parent OmniScript?

I have looked into OmniScript navigation methods, but I haven't found a supported method that allows me to specify a particular step/index to navigate to.

Has anyone implemented a similar Edit → navigate back to the original step

pattern in OmniScript? If so, what would be the recommended approach?  

#Omnistudio #Salesforce Developer #Vlocity #Financial Services Cloud #Trailhead

3 answers
  1. Sep 29, 12:22 PM

    Hi @Rahul Khedkar

     

    A common supported approach is to keep the navigation state in the parent OmniScript and treat Step 2 as an edit mode rather than trying to make the Step 2 Continue button directly jump to an arbitrary step index. When Step 7 opens Step 2, store a flag such as returnToStep7 = true in the OmniScript data JSON. Then, on Step 2 Continue, your custom LWC can check that flag and invoke the parent OmniScript navigation logic to return to Step 7; otherwise, it follows the normal Step 2 → Step 3 flow. This avoids hard-coding unsupported step-index navigation inside the LWC and works well for an Edit → Return pattern. If you share your current custom LWC navigation code, I can show the exact implementation for your OmniScript.

0/9000

Hi Everyone, 

 

I am facing an issue with OmniStudio OmniScript in Experience Cloud. 

 

Issue:

The OmniScript works correctly in Preview mode, but inside the Experience Site the component area remains completely blank. 

 

What I Have Already Verified: 

* OmniScript is Active 

* OmniScript is added correctly in Experience Builder 

* Type/Subtype/Language are correct 

* Runtime permissions are assigned 

* OmniStudio permission sets assigned to Experience User 

* No browser console errors now 

* Using $Vlocity.UserId in Data Mapper Input Parameters 

* DataRaptor and Integration Procedure are working in Preview 

* Site is published 

* Cache cleared 

* Community user has permissions 

 

-- Still, the OmniScript itself does not render. 

 

Has anyone faced this issue where OmniScript works in Preview but shows blank in Experience Cloud? 

 

@* Experience Cloud * 

2 answers
  1. Sep 29, 7:25 AM

    Hii  

       Ritik, 

     

    Preview runs as an admin, but the site runs as your community user. A blank component with no console error usually means the OmniScript's definition or first data call failed for that user, so it is an access problem.

      

    Please try these in order: 

     

    1. Reset the component. In Experience Builder, set Type, SubType and Language again by hand. By default the component picks the first active OmniScript. Then publish.
    2. Redeploy. Deactivate and activate the OmniScript. On the managed package designer with standard runtime, click Deploy Standard Runtime Compatible LWC. Publish the site again.
    3. Isolate the cause. Clone the OmniScript and remove the first prefill Data Mapper or Integration Procedure. If the clone renders, the problem is access for those calls.
    4. Check user-context access. With DefaultRequiredPermission set in OmniInteractionConfig, Data Mappers run as the user and need the required custom permission. The community user needs Read access to all objects and fields used, sharing access to the records, and Apex class access for any classes called.
    5. Find the real error. Use "Log in to Experience as User" on the live site, then check the Network tab and a debug log for that user.
    6. If the site is LWR, confirm OmniStudio standard runtime is enabled. If it still fails, open a case with Salesforce Support.

    Is your site Aura or LWR, and are the users logged in or guests?

    https://help.salesforce.com/apex/HTViewHelpDoc?id=xcloud.os_add_your_omniscript_to_an_experience_page_19992.htm

0/9000

Hi all, 

I am using the OmniStudio Document Template Designer to update a current packing slip. I replaced a line in the actual text of the document, so nothing essential to the functionality. I made a new version of it and then replaced the file with my edited version. When I try to do that, it throws this error:  

Exception (400): List has no rows for assignment to SObject when saving OmniStudio Document Template

I've been trying to troubleshoot this for a bit and cannot seem to figure out the problem. Would anyone know how I can troubleshoot more or potentially fix this? 

Thank you! 

 

 

 

#Vlocity

3 answers
  1. Sep 29, 6:56 AM

    1. Adding DocGen Designer Permission set. 

    2. File > Library > Docgen Document Template Library > Manage Members > Adding your account as library administrator.

0/9000

after all orchstreation items are completed still order is in progress and orchestration in not completed in salesforce vlocity orchestration. 

LastOrchestration Item type is Milestone.  

 

#Vlocity

 

#Flow-Orchestration

 

#Omnistudio  #Order Management

1 answer
  1. Sep 24, 7:05 PM

    A Milestone being the last item is usually the clue here. In Industries (Vlocity) Order Management a Milestone is only a marker: it completes automatically once all of its "Depends On" items are complete, and it never fails, but it does not do any work itself. Completing the milestone does not by itself update the Order record, so an order can sit "In Progress" even though every item on the plan looks green. These are the checks I would go through: 

     

    1. Confirm every item on the plan really is finished. In the orchestration plan view (or by querying the Orchestration Item records for that plan), look for any item that is not Completed, for example Pending, Ready, Running, Failed or Frozen, including items in other swimlanes or in plans of other decomposed/fulfilment-request orders. A single item still pending (often a manual task or a callout waiting for a response) keeps the plan open. 

     

    2. Check that the background processing is running. Orchestration items are progressed by Industries OM asynchronous jobs. Look at Setup > Apex Jobs and Scheduled Jobs for failed or aborted vlocity_cmt jobs and at the debug logs for the user running orchestration. If the jobs are not scheduled or are failing, the plan state is never re-evaluated. 

     

    3. Make sure something actually updates the Order status. Order status normally changes because of an Auto Task in the plan (commonly the asset-creation / order-completion step near the end), not because the last milestone completed. If your plan ends with only a Milestone, add an Auto Task after it (dependency: Depends On the milestone) whose item implementation updates the Order status or runs your standard "create assets / complete order" logic, and re-test with a new order. 

     

    4. For the stuck order itself, once you have found the cause you can retry the failed item from the plan view, or complete the remaining item manually, and the plan should move to Completed. 

     

    References: 

    Understanding Order Management Orchestration Basics (Trailhead):

    https://trailhead.salesforce.com/content/learn/modules/industries-order-management-orchestration-foundations/dive-into-industries-order-management-orchestration

     

    The Industries Order Management Solution:

    https://help.salesforce.com/s/articleView?id=ind.comms_t_the_industries_order_management_solution_229538.htm&type=5

     

    Troubleshooting Industries Order Management:

    https://help.salesforce.com/s/articleView?id=ind.comms_t_troubleshooting_industries_order_management_242806.htm&type=5

     

     

    Assumption: I am assuming this is managed-package (vlocity_cmt) Industries Order Management with a standard plan where the Order status is expected to be updated by a task in the plan. Exact job names and item implementations differ by release and by how your plan definition was built, so please share the state of each orchestration item and whether any Auto Task follows the milestone if the checks above don't resolve it.

0/9000

I am new to Salesforce and have been mostly learning as I go. The main goal at hand is to create a scholarship application for the general public to access and fill out, then be reviewed internally by our team. I was told to use Omniscript to build the application and after addressing many issues, it seems my last one happens to be with file uploads. I have around 6 different file uploads the applicant has to submit. Some upload fields only require 1 file submission while others may need up to 4 files submitted. Of the six file uploads I have successfully mapped the first four to the custom object I have created to capture the user input. The final two file upload fields I have mapped the exact same and made sure the JSON code was structured identically to the ones that are working. 

 

I am using a dataraptor load with contentdocumentlink objects linked to my custom object to get the files connected. I have been looking at this for days now and nothing I have done seems to be allowing the final two file uploads to successfully populate.

 

Additionally, I am getting the error " Required fields are missing: [ContentDocumentId]" upon the user submitting the omniscript. I am sure these are related and I even went to ensure the file uploads are not required to address this issue with no luck. Any and all advice is greatly appreciated. Thanks!

 

#Vlocity  #Trailhead  #Salesforce Developer

1 answer
  1. Sep 16, 7:42 PM

    Hi Eli,

    The ContentDocumentId error usually indicates that the DataRaptor Load is trying to create a ContentDocumentLink record without receiving a valid ContentDocumentId from the file upload response.

    Since the first four uploads are working with the same approach, I would compare the JSON output and DataRaptor mapping for the working and non-working upload elements, especially the ContentDocumentId value and the array structure when multiple files are uploaded.

    Also check that the file upload element's response is being passed to the DataRaptor before the ContentDocumentLink records are created. Making the upload optional only prevents the field from being required; it won't resolve a ContentDocumentLink being created with a blank ContentDocumentId. 

     

    If you're still seeing the issue, could you share the JSON for one working upload and one of the failing uploads, along with the relevant DataRaptor Load mapping? That would make it easier to identify the difference.

0/9000

I am calling an Integration Procedure from an LWC within an Experience Site, which subsequently calls a Data Mapper to query the "Reference Number" field on the Lead object. 

 

I am encountering the following error: "

Specify a valid bundle name for the Data Mapper and try again.

" 

 

I have already attempted the following troubleshooting steps: 

 

  • Shared the Lead with the guest user via sharing rules and provided the necessary field-level access. 

     

  • Enabled the "Enable consumers and partners to execute OmniScripts, DRs, and Cards through a Community or off-platform" setting for the guest user profile. 

     

Does anyone have any suggestions on how to resolve this? 

 

#Salesforce Developer #Omnistudio #Vlocity

4 answers
0/9000

I have created data mapper that fetches all funding opp records and display in flexcard. This flexcard is placed on public page. But I see error Data mapper is not active .Please activate and try again.   I have given read access to all Omni objects and also created sharing rule for funding opp.    

2 answers
  1. Aug 3, 1:51 PM

    Hi, In my case I deactivated and activated the mapper and cleared the browser cache, resulted in the fix.

0/9000