cancel
Showing results for 
Search instead for 
Did you mean: 

workview external class based on a result of unity script

Massoundi_Omar
Confirmed Champ
Confirmed Champ

Hi

Did someone experienced a workview external class based on a results of unity script ? i'm searching for the best practices, a quick steps guide or even a sample if possible ...

Thanks

1 ACCEPTED ANSWER

Patrick_Ramser
Star Contributor
Star Contributor

From Rob's sub-comment above:

"If you're trying to create an external class that uses the IWorkViewGetExternalClassDataScript interface, there's two methods of interest on that class. OnWorkViewGetExternalObject has the WorkViewGetExternalObjectEventArgs that exposes an ExternalObject that you can populate with attributes with SetAttributeValue. OnWorkViewPopulateExternalFilterResults.WorkViewPopulateExternalFilterResultsEventArgs provides access to the filter through FilterQuery; you can create several external objects through CreateExternalObject() and add them to Results."

If this isn't correct or you have anymore questions, comments, or need anything more in-depth, feel free to reach out to your first line of support, and if available, us at apisupport@onbase.com.

View answer in original post

5 REPLIES 5

Rob_Herman
Star Contributor
Star Contributor
Good afternoon,

Can you please provide a little more information about when you're looking for a script to run and what the inputs and outputs need to be? I'm not quite clear what this script needs to do.

Massoundi_Omar
Confirmed Champ
Confirmed Champ
Hello Rob,

My business case is to populate a specific Active Directory security group members using a workview external class and a unity script. In my environnement, I have no other way to access these data...so i'm searching for a solution that would fulfill this requirement

Rob_Herman
Star Contributor
Star Contributor
Are you attempting to use Active Directory information to create new Workview objects? Or are you attempting to create new Active Directory information from existing Workview objects?

Rob_Herman
Star Contributor
Star Contributor
If you're trying to create an external class that uses the IWorkViewGetExternalClassDataScript interface, there's two methods of interest on that class. OnWorkViewGetExternalObject has the WorkViewGetExternalObjectEventArgs that exposes an ExternalObject that you can populate with attributes with SetAttributeValue. OnWorkViewPopulateExternalFilterResults.WorkViewPopulateExternalFilterResultsEventArgs provides access to the filter through FilterQuery; you can create several external objects through CreateExternalObject() and add them to Results.