Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

How to use a BDC Filter Descriptor of Type UserProfile

$
0
0

Newbe to BDC Models here.  So I've worked through this example:

msdn.microsoft.com/en-us/library/gg585180.aspx

I have this up and running, everything works great.  Now I want to create a Filter Desciptor for the Read List Method of Type UserProfile.  The objective is to pass the current logged in userid to the Read List Method.  Here are the steps I've taken.

1. Created a Parameter in the Read List called CurrentUserProfile, with a direction of "In" and TypeDescriptor of "CurrentUserProfileTypeDescriptor".

2. Created a Filter Descriptor in the Read List Called CurrentUserProfileFilter.  Set the Type to "UserProfile" and Associated the "CurrentUserProfile" TypeDescriptor created in step one.

Now, this is were I'm stuck.  Listed below is Microsoft description for the UserProfile Type Filter Descriptor.  My Question is how and where can I set this in my BDC Model.  I imagine its in the Filter Properties.  I was thinking the custom properties.  I can't seem to find any examples of this on the web.

Microsoft Explains the UserProfile Type Descriptor as:  "Used when calling an operation on an external system and the value to be passed as an input parameter should be a property on the current user's profile. Business Connectivity Services uses the UserProfileProvider property and the UserProfilePropertyName property that are specified on the filter to find a value to set on the input parameter.UserProfileProvider is used to fetch the current user's profile andUserProfilePropertyName contains the property name whose value on the user profile should be passed to the input parameter."   I can't find any good examples of this.  Any direction would be helpful

Here is a link to an image of my VS BDC Solution:  social.technet.microsoft.com/Forums/getfile/226285



Viewing all articles
Browse latest Browse all 17574

Trending Articles