Skip to end of metadata
Go to start of metadata

To configure a find and modify users flow:

  1. Click the Create Flow  icon associated with finding and modifying simple users.
    The API Orchestration user interface is displayed.
  2. Select and pull a Set Context node onto the flow editor from the Core list. Note that the Start node is automatically connected to the input of the Set Context node.
  3. Name the node: Build args parameter (new)
  4. Select Parameters.
  5. For the value parameter, select Selector and enter $.params.new in the field.
  6. Select Outputs.
  7. For the next output, enter $.params.args.new in the field.
  8. Select and pull a Set Context node onto the flow editor from the Core list.
  9. Name the node: Build args parameter (upsert)
  10. Select Parameters.
  11. For the value parameter, select Selector and enter $.params.upsert in the field.
  12. Select Outputs.
  13. For the next output, enter $.params.args.upsert in the field.
  14. Connect the next output of the Build args parameter (new) node to the input of the Build args parameter (upsert) node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
  15. Select and pull the simpleusers node onto the flow editor from the Models list.
  16. Name the node: Find and modify users
  17. Select the findAndModify method.
  18. Select Parameters.
  19. Configure the data parameter according to the findAndModify parameters listed in Flow Orchestration.
  20. Enable the additional parameters and configure them according to the findAndModify parameters listed in Flow Orchestration.
  21. Select Outputs.
  22. Configure the outputs per the findAndModify outputs in listed in Flow Orchestration.
  23. Connect the next output of the Build args parameter (upsert) to the input of the Find and modify users node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
  24. Select and pull an HTTP node onto the flow editor from the Core list.
  25. Name the node: Find and modify succeeded
  26. Select Parameters.
  27. For the status parameter, select Number and enter 204 in the field.
  28. Leave the body and headers parameters disabled.
  29. Connect the next output of the Find and modify users node to the input of the Find and modify succeeded node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
  30. Select and pull an HTTP node onto the flow editor from the Core list.
  31. Name the node: Users not found
  32. Select Parameters.
  33. For the status parameter, select Number and enter 404 in the field.
  34. Leave the body and headers parameters disabled.
  35. Connect the notfound output of the Find and modify users node to the input of the Users not found node. For additional information on connecting nodes in a flow, refer to Manage Nodes. The completed flow is displayed.
  36. Click Save.
  37. On the next screen, click Proceed. The server will be restarted and the Find and modify users flow will be saved and enabled.
  • No labels