Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getResolvedSemanticURL(routeKey, payload, params)

Updated on July 20, 2021

Obtains the resolved semantic URL for a route key.

Returns

The resolved semantic URL as a string.

Parameters

NameTypeDescriptionRequired
routeKeystringThe type of action supported by the semantic URL utility.
payloadobjectThe unique identifier that matches with app routes.
paramsobjectThe value assigned to the dynamic URL query parameter.

Usage example

In this example, the API takes the supported action from the route key, identifies the app route from the payload, assigns the value to the query parameter, and returns the resolved semantic URL.

const semanticUrlUtils = PCore.getSemanticUrlUtils();
const routeKey = semanticUrlUtils.getActions().ACTION_OPENWORKBYHANDLE;
const payload = {caseClassName: "ON8TTL-MyApp-Work-MyCase"};
const params = {workID: "C-007"};
const resolvedURL = semanticUrlUtils.getResolvedSemanticURL(routeKey, payload, params);

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us