Ask for Approval agains alm_Hardware Table

Cent
Tera Contributor

How to ask for approval in flow designer against alm_hardware table? thanks!

1 ACCEPTED SOLUTION

PrashantLearnIT
Giga Sage

Hi @Cent 

 

Steps to Request Approval in Flow Designer for alm_hardware:

1. Create a New Flow:

  • Navigate to Flow Designer:
    Go to Process Automation > Flow Designer from the navigation menu.
  • Click Create New and give your flow a meaningful name (e.g., "Hardware Asset Approval Flow").

2. Define Trigger for the Flow:

You need to define what event will trigger the approval request, for example, when a new hardware asset is created, or when a specific field is updated.

  • In the Trigger section, select Table.
  • Choose the alm_hardware table.
  • Select when the flow should run. You can choose from options such as:
    • Created: When a new hardware asset record is created.
    • Updated: When an existing hardware asset record is updated.
    • Created or Updated: To trigger the flow on both events.

3. Add an Approval Action:

To add an approval step, do the following:

  • Click on + New Action.
  • Under the Core Actions category, select Approval.
  • Choose Ask for Approval.

4. Configure the Approval Action:

Now, configure the approval step based on your requirements.

  • Record for Approval:
    • Select Trigger Record. This ensures the approval request is tied to the alm_hardware record that triggered the flow.
  • Approval Roles or Users:
    • Under Approvers, specify the user(s) or group(s) who should approve the asset record. You can assign this dynamically based on data from the alm_hardware record or hardcode specific users or groups. For example:

      • You can assign approval to the asset manager, department head, or another related field in the alm_hardware record.
      • Alternatively, specify users/groups like IT Asset Managers.
    • Approval Type: Choose the approval type (e.g., Anyone approves, Everyone approves, or First response).

  • Approval Conditions:
    • You can add conditions to decide when approval should be triggered, such as only when the State field is set to a specific value (e.g., "In Use" or "Pending Approval").
  • Approval Subject and Description:
    Customize the subject and description of the approval request. This will be the information displayed in the approval email and the Approvals module in ServiceNow.

5. Add Additional Actions (Optional):

After the approval, you may want to add actions for what should happen when the request is approved or rejected:

  • Approved:
    Add actions such as updating the state of the hardware asset to "Approved" or performing other post-approval logic.

  • Rejected:
    Add actions to handle rejections, like updating the state of the asset to "Rejected" or notifying the requester.

6. Test and Activate the Flow:

  • Save your flow and Test it by creating or updating an alm_hardware record to see if the approval request is triggered as expected.
  • If everything works as intended, activate the flow.

 

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

View solution in original post

3 REPLIES 3

Animesh Das2
Mega Sage

Hi @Cent ,

 

You can simply use the 'Ask for approval' action under 'ServiceNow Core' category in your flow actions and configure as per your need putting 'Table' as 'alm_hardware'. PFB SS of the empty action.

AnimeshDas2_0-1727934134485.png

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

Hi @Cent ,

If you got chance to look into the suggestion/solution I shared and if this addressed your question, please mark this response correct by clicking on Accept as Solution and/or Kudos so that this thread can be closed and may be helpful for others as well in the community.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

PrashantLearnIT
Giga Sage

Hi @Cent 

 

Steps to Request Approval in Flow Designer for alm_hardware:

1. Create a New Flow:

  • Navigate to Flow Designer:
    Go to Process Automation > Flow Designer from the navigation menu.
  • Click Create New and give your flow a meaningful name (e.g., "Hardware Asset Approval Flow").

2. Define Trigger for the Flow:

You need to define what event will trigger the approval request, for example, when a new hardware asset is created, or when a specific field is updated.

  • In the Trigger section, select Table.
  • Choose the alm_hardware table.
  • Select when the flow should run. You can choose from options such as:
    • Created: When a new hardware asset record is created.
    • Updated: When an existing hardware asset record is updated.
    • Created or Updated: To trigger the flow on both events.

3. Add an Approval Action:

To add an approval step, do the following:

  • Click on + New Action.
  • Under the Core Actions category, select Approval.
  • Choose Ask for Approval.

4. Configure the Approval Action:

Now, configure the approval step based on your requirements.

  • Record for Approval:
    • Select Trigger Record. This ensures the approval request is tied to the alm_hardware record that triggered the flow.
  • Approval Roles or Users:
    • Under Approvers, specify the user(s) or group(s) who should approve the asset record. You can assign this dynamically based on data from the alm_hardware record or hardcode specific users or groups. For example:

      • You can assign approval to the asset manager, department head, or another related field in the alm_hardware record.
      • Alternatively, specify users/groups like IT Asset Managers.
    • Approval Type: Choose the approval type (e.g., Anyone approves, Everyone approves, or First response).

  • Approval Conditions:
    • You can add conditions to decide when approval should be triggered, such as only when the State field is set to a specific value (e.g., "In Use" or "Pending Approval").
  • Approval Subject and Description:
    Customize the subject and description of the approval request. This will be the information displayed in the approval email and the Approvals module in ServiceNow.

5. Add Additional Actions (Optional):

After the approval, you may want to add actions for what should happen when the request is approved or rejected:

  • Approved:
    Add actions such as updating the state of the hardware asset to "Approved" or performing other post-approval logic.

  • Rejected:
    Add actions to handle rejections, like updating the state of the asset to "Rejected" or notifying the requester.

6. Test and Activate the Flow:

  • Save your flow and Test it by creating or updating an alm_hardware record to see if the approval request is triggered as expected.
  • If everything works as intended, activate the flow.

 

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************