# How to pass access profile id's in create Campaign Api

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084>\
**Category:** SHF Discussion and Questions\
**Tags:** certifications\
**Created:** [January 30, 2024, 10:59am UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084 "2024-01-30T10:59:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [January 30, 2024, 10:59am UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/1 "2024-01-30T10:59:03Z")

</div>

Hi All,

We have a requirement to create a campaign for access profiles and roles that are assigned to users from request center only. Campaign should not contain any birthright access.

So we choose create campaign API to create campaign by fetching the access profile and role ids which the user has dynamically. We want to use these id’s in create campaign API under searchCampaignInfo tag as shown in the screenshot below.

 ![Screenshot 2024-01-30 162301](https://global.discourse-cdn.com/sailpoint/original/2X/d/d23c692f14e978d29a5893ef2f5d750f809ca01d.png)

When we pass the static ids we are able to create the campaign. But when I want to fetch the ids and pass them dynamically we are not able to create campaign with items to review. All I see is a campaign is created and with 0 reviews in it.

When I see the HTTP Step OutPut where create campaign API is used I see workflow is not converting it id’s and considering the code as string.

 ![Screenshot 2024-01-30 162753](https://global.discourse-cdn.com/sailpoint/original/2X/9/9daa35fafa4f19dd5354aab3cdae3f1e2c5e708a.png)

So here I am looking for help on how to make this as dynamic so that I can pass all of the ids.

Thanks,  
Uday

---

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [January 30, 2024, 11:03am UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/2 "2024-01-30T11:03:38Z")

</div>

These are the different steps that I have in the workflow and Http request step gives me all of the id’s of the access profiles and roles which the user has

 ![JobTransferWorkflow1](https://global.discourse-cdn.com/sailpoint/original/2X/0/0b7de09daf02eff9d285a9e8b0c7a5e5434b66d7.png)

---

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [January 30, 2024, 11:06am UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/3 "2024-01-30T11:06:24Z")

</div>

Define Variable 1 give me all of the ids which i want when I use same code which is in my first post.

 ![JobTransferWorkflow2](https://global.discourse-cdn.com/sailpoint/original/2X/4/4d798fbec9abbaa87d21906b6348661d38932018.png)

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [January 31, 2024, 11:39am UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/4 "2024-01-31T11:39:00Z")

</div>

Hi @udayputta, I have moved your topic to #IIQ Discussion and Questions.

---

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [January 31, 2024, 2:57pm UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/5 "2024-01-31T14:57:17Z")

</div>

hi @colin_mckibben We are facing this in IdentityNow. I am not sure if this should be in IIQ Discussion and Questions. If that should be thank you for moving it.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [January 31, 2024, 2:58pm UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/6 "2024-01-31T14:58:08Z")

</div>

My apologies—moved to the right place!

---

<div class="post-metadata">

**Author:** ![udayputta](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/udayputta/32/14195_2.png) [@udayputta](https://developer.sailpoint.com/discuss/u/udayputta)\
**Post date:** [March 8, 2024, 2:49pm UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/7 "2024-03-08T14:49:05Z")

</div>

We have made it working with the below logic once we get the Access Profile ID’s

```auto
"searchCampaignInfo": {
							"accessConstraints": [
								{
									"ids.$": "$.hTTPRequest.body[*].id",
									"operator": "SELECTED",
									"type": "ACCESS_PROFILE"
								},
								{
									"ids.$": "$.hTTPRequest.body[*].id",
									"operator": "SELECTED",
									"type": "ROLE"
								}
							],

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [May 7, 2024, 2:49pm UTC](https://developer.sailpoint.com/discuss/t/how-to-pass-access-profile-ids-in-create-campaign-api/28084/8 "2024-05-07T14:49:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
