Solved

IFS Work Flow - how to pass Path Parameter to projection

  • 22 May 2023
  • 4 replies
  • 142 views

Userlevel 5
Badge +9
  • Sidekick (Employee)
  • 50 replies

Hi , 

in workflow , I would like to call a Projection with Path parameter,

which I succeed to call via Postman

 while, in workflow , seems it doesn’t support Path Parameter,

I tried to put Path Parameter into normal “Parameter”, it pops up error

 

 

can anyone help?

 

 

icon

Best answer by Shou 23 May 2023, 18:57

View original

4 replies

Userlevel 5
Badge +15

Hi @Shou 

 

You are currently using a Update projection action, you’d need to use a call projection action to use a call method. IFS Cloud uses Read, Update, Delete, and Call actions for projections.

 

Here is an example where I used a call projection action in my workflow

 

For your example though, I’m assuming the ConfigID parameter is either not called “ConfigID” but ConfigId or the projection doesn’t have access to that field, so you’d need to update a different projection. I can’t say for certain without seeing the error.


Thanks,
Bryan

Userlevel 5
Badge +9

@bdoucette

Thanks for you answer.

my understand is 

Call   -  for projection’s Action and Function

Read, Update - for projection’s Entity

 

Currently, I just want to “PATCH” one Entity(not call an Action) , so “Update” is the correct selection.

meanwhile, you are right, ConfigID should be ConfigurationId.

 

But still , I get the ETag Error

 

 

Userlevel 5
Badge +9

I found the answer for it.

※tried with 23R1.

before you “Update” an Entity,

1) you have to “Read” it to get the Etag , 

 

2) then in the “Update” part

    just simply pass all Path Parameter and Update Parameter together 

    

after that , all works fine.

 

Userlevel 3
Badge +6

Hi @bdoucette 

I have some doubt about parameters in Call Projection task in workflow.

Can you please clarify some issues for me about passing parameters in Call Projection?

 

Thanks

Reply