Can variables from extension section leveraged when creating connections

gk13
Tera Expert

Variables from the identification section can be referenced by $parent. during connection building. Is the same also possible with variables set in the extension section?

Using $parent doesn't show up any of the variables I defined in the extension section nor do I find another way to reference them. Do I miss something here or is the extension section only good for populating attributes of the CI type?

1 ACCEPTED SOLUTION

gk13
Tera Expert

I raised a HI ticket and got an answer:

  1. Variables from Extension Section are not available in Connection Section because Extension Section is run after Connection Section. The run order by the plattform is as follows: Identification Section, Connection Section, Extension Section
  2. BP for new connections: New connections should be done in the Connection Section

 

My take away from this is:

  • ServiceNow recommends: Don't use the Extension Section for creating new connections. Use Connection Section instead
  • To gather information for the Connection Section
    • the Extension Section is useless because you cant reference information gathered in the Extension Section in the Connection Section (Reason: the plattform runs the Extension Section after the Connection Section).
    • I've to modify the Identification Section to gather information for the Connection Section (which means the pattern will get flagged)

View solution in original post

11 REPLIES 11

gk - I've just ran across the exact same scenario you have.  i.e. Working w/IIS Virtual web and I needed info from customer-specific environment that sent me down the path of using the Extension section.... only to find out that hard way that those extension-created variables are not available in the Create Connection section.  

This situation forces the decision -- either use Extension section to both A) get variables and B) build connection there too - preventing the "update" flag but seemingly not a best practice....  OR use the Create Connection section for A & B, but forces the 'update' while adhering to best practices.   Arghhh.......

 

The MID Server runs extension sections after identification sections and only if at least one identification section completes successfully.

From https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/service-mapping/tas...