Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Creating an audience from specific index position from Array of obj

Avatar

Level 4

This is the array of object field in AEP schema

{

   "model":[

      {

         "modelName":"PRP_TRIGGER_1Y_14DLAG",

         "modelScore":0.1243792474269867,

      },

      {

         "modelName":"PRP_60D_LAPS_1Y_REV1",

         "modelScore":0.7769704461097717,

      },

{

         "modelName":"PRP_SALON_TRIGGER_1Y_15DLAG",

         "modelScore":0.1443792474269867,

      }

   ],

   "sysIdentifiers":{

      "mId":"3646278"

   }

}

 

How can we create an audience by specifying the condition from specific index ?

lets say list of all customer where on 2nd index of the model object has "modelName"="PRP_60D_LAPS_1Y_REV1" ?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

it have been told by adobe engineering that unfortunately current AEP segmentation UI doesnt support index based audience creation.

View solution in original post

6 Replies

Avatar

Level 5

Hey Pradeep, this should be an easy one! Because you've declared it as an object array in the schema it will load as such within the audiences UI. You just need to say where model name = PRP_60D_LAPS_1Y_REV1 and then filter on whatever criteria you need for the model score with an AND.

 

You won't be able to see it in the audience UI until you've made the dataset and loaded data through of an object array type.

 

Let me know if you have any questions!

 

Tyler Krause

 

 

Avatar

Level 4

But how do I specify the index position, so it doesnt search across whole array ?

Avatar

Level 5

That's the great thing - you ARE specifying the index position by doing this. By specifying which modelName you're looking for, it will pull that modelNames value automatically without you having to specify which index position itself.

 

AEP truly made it easier than you would expect.

 

Tyler Krause

Avatar

Level 4

But the requirement is not to scan the entire array, but only scan the particular object from specific index position to find the MATCH.

Avatar

Level 3

I don't think you can specify an index position when creating an audience. Besides that how will you make sure that index position is always 0 or 1 for model 1 and model 2.

 

I also stored data science models in AEP as an array and we are accessing it through model name in segmentation.

 

Data in profile store is stored in Cosmos DB as a distributed architecture. Queries are optimized by AEP based on audience filter criteria so performance should not be concern.

Avatar

Correct answer by
Level 4

it have been told by adobe engineering that unfortunately current AEP segmentation UI doesnt support index based audience creation.