WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Latest posts

latest posts

MVP
In reply to: Arthuzad

starting to get it after thoroughly reading the docs. i can use only variables from the report i'm creating the calculated column in, but i need field age or name from the other report that should be based on my previous experience on wfd_guid which i'm matching from the first report field. not sure how to do formula because it's giving me unrecognized errors so far.

case
when dbo.clearwfelemid(WFD_AttChoose2) = (select wfd_guid from other_dictionary) then name(updated name variable from the other dictionary)
else 'not found'
end

Here is an example SQL which I'm using in few reports:

(
SELECT
DTYPE_Name /*Change this to any column you'll need*/
FROM
WFElements JOIN
WFSteps ON WFD_STPID = STP_ID JOIN
WorkFlows ON WF_ID = STP_WFID JOIN
WFDocTypes ON DTYPE_ID = WFD_DTYPEID
WHERE
WF_GUID = 'af556142-7203-44e1-9aa2-550c2cd321cf' AND /* GUID of the workflow - I'm working with GUID as it's shared between environments, using regular ID will break between DEV/TEST/PROD, in theory not necessary, but I'm chipping it in, if database will grow, maybe SQL optimizer will use additional Indexes*/
WFD_ID = wfelems.WFD_AttChoose3_ID /* Column which stores connection to the dictionary */
)

When using a subquery - this parenthesis is necessary.

Hi all!

I am trying out the new user defined API in 2025 R2.

I have a client application with application context and added the scope App.UserDefAPI.ReadWrite.All (according to documentation this is necessary to get access to endpoint with automation).

In addition the REST API client is application admin, can start new workflows and so on...

What I am trying to do is a POST to an automation endpoint, which starts another workflow in its automation (very simple).

But all I am getting is, regardless of what I do:

{
"description": "Invalid scopes",
"guid": "48078ebb-424f-4a0f-9a27-7e67e408e148"
}

The guid cannot be found in designer studio, there is also no automation log.

Remark: The endpoint with a datasource works fine.

Did I miss something or this is a bug?

Thanks a lot in advance, Nik

In reply to: Maksymilian Stachowiak

Let's say we have following example:
Dictionary: People, Fields: Name, ID
Workflow: Salary Management

On some day HR created a new instance of Salary Management for new employee - John Doe, with ID 17
Few months passes, and John Doe changes last name to Doe-Foo due to getting married.

HR updates ID 17 John Doe in People Dictionary to John Doe-Foo.

Due to the fact how webcon stores the data this change will not affect Salary Management form filled in when John was employed, and on that form there will be still displayed as John Doe, same with reports.

If you have to change the display of picker value - it's not possible without changing the value of the field with new updated value:: John Doe-Foo (manually or with an action).

You could though use calculated columns on reports, or data row field on the form, which will display the data accordingly to what is currently stored under People Dictionary.


Adding to solution by Daniel - if it's necessary that's the way, but if there will be many documents in different processes/applications it might be tedious to catch them all :)

starting to get it after thoroughly reading the docs. i can use only variables from the report i'm creating the calculated column in, but i need field age or name from the other report that should be based on my previous experience on wfd_guid which i'm matching from the first report field. not sure how to do formula because it's giving me unrecognized errors so far.

case
when dbo.clearwfelemid(WFD_AttChoose2) = (select wfd_guid from other_dictionary) then name(updated name variable from the other dictionary)
else 'not found'
end

MVP

Hi Ernst,
solution, which i'm currently using:
1. Create a Global Constant let's call it Hostname, and make it specific per environment, like https://companydev, https://companytest, https://companyprod
2. Using that constant create a Global Business rule like the one attached - using concat create whole url, in my case its using 3 parameters, but you could hardcode database id and app id if it won't be global for example.

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings