cancel
Showing results for 
Search instead for 
Did you mean: 

help with external dataset based on keyword value

David_Chatterto
Star Collaborator
Star Collaborator

Hi,

 

I'm trying to populate the values of an external data set with a Unity script, using the value of a keyword on a form. This is what I have used according to the SDK documentation:

 

KeywordType kwType = app.Core.KeywordTypes.Find("Site");
KeywordRecord kwRecord = args.SearchParameters.RelatedKeywordRecords.Find(kwType);
Keyword kwSite = (kwRecord != null) ? kwRecord.Keywords.Find(kwType) : null;

string site = kwSite.AlphaNumericValue;

 

However kwSite keeps returning null even though I select something in the original dataset "site" keyword. Please help.

 

Thanks.

1 ACCEPTED ANSWER

Daniel_Quill
Elite Collaborator
Elite Collaborator

Hi David,

 

Can you verify that you configuration is setup?  In order for the form to pass the Keyword data to the External Dataset you need to enable the following:

 

7196ce3ec7bd42f6b618cf343715c290

View answer in original post

2 REPLIES 2

Daniel_Quill
Elite Collaborator
Elite Collaborator

Hi David,

 

Can you verify that you configuration is setup?  In order for the form to pass the Keyword data to the External Dataset you need to enable the following:

 

7196ce3ec7bd42f6b618cf343715c290

Thanks Daniel, that worked.