Order Guide calling other order Guide

New Developer_S
Giga Sage

Hi,

 

I have a question regarding Order Guides. Is it a good practice to call one order guide from another order guide ( instead of adding catalog items which we usually do ) ?

Please pour in your comments.

 

Thank you,

TIA

2 REPLIES 2

Community Alums
Not applicable

Hi @New Developer_S ,

Please refer to this video which is a best practice : https://www.youtube.com/watch?v=85-pYyVLa-Q

 

Every ServiceNow developer has ran into this and had to figure out their own workaround, now we have order guide sequencing built in!

StephaneDO
Tera Contributor

Using an Order Guide to call another Order Guide in ServiceNow is generally not recommended and can lead to complications. Here are some reasons why this practice can be problematic:

  1. Complexity and Maintenance:

    • Nesting Order Guides can make the system more complex to manage and maintain. It can complicate troubleshooting and updating the guides.
  2. User Experience:

    • Users may become confused if one Order Guide calls another, making the user experience less intuitive and harder to follow.
  3. Performance:

    • Using multiple nested Order Guides can potentially affect system performance, especially if each guide contains numerous items.
  4. Validation and Workflow:

    • Managing validations and workflows can become more complex. Ensuring that validation rules and workflows are aligned across guides can be challenging.

Best Practices

It is generally better to use a single Order Guide and add all required catalog items within that guide. This approach allows you to:

  • Maintain a simpler, more understandable structure.
  • Ensure that all validations and workflows are centralized.
  • Simplify system management and maintenance.

Alternatives

If you need to group items in different ways, consider the following solutions:

  1. Catalog Categories:

    • Use categories to organize catalog items, making them easily accessible without needing multiple guides.
  2. Variables and Options:

    • Use variables and options within a single Order Guide to offer users flexibility in their selections.
  3. Subflows:

    • Create subflows to handle specific parts of the ordering process instead of creating nested guides.

In summary, it is generally advisable to avoid calling one Order Guide from another. Keep your guides simple and centralize item management to improve maintainability and user experience.