none
SharePoint Online Workflow RRS feed

  • Question

  • Hi,

    I have set phone number and fax number in user profile in SharePoint Online.

    In SharePoint Online workflow I want to get phone number and fax number of created by user. How to get that?


    Wednesday, September 27, 2017 8:14 AM

All replies

  • I'm not sure I get what you're after.  But as you're using SharePoint Online, you can build worflows in two fashions: -

    1. Via SharePoint Designer
    2. Via an application called Flow

    SPD Workflow's are more mature and might scale better to an enterprise if plugged into a list or library.  Flow is much newer and allows cross application workflows but doesn't really scale all that well for enterprise workflows.  it's strength is allowing individuals to set up flows that their unique circumstances may require.


    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles: CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

    Wednesday, September 27, 2017 10:40 AM
    Answerer
  • Hi,

    You can use call HTTP Service in Designer Workflow to talk to rest API:-

    _api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor

    Just Pass the created by user and property name into it.

    Use a dictionary to mention the request headers and return your output in a workflow variable.

    Next from this variable you can easily extract the value of the asked property.

    Here is a very good blog article explaining in detail how you can do this:-

    https://blog.vgrem.com/2014/05/08/consuming-the-sharepoint-2013-rest-service-from-sharepoint-designer/

    this also applies to SharePoint Online in Office 365.


    Mark as Answer if helped!! To be or Not to Be..The question is this only......

    • Proposed as answer by Ankur Madaan Wednesday, September 27, 2017 9:35 PM
    Wednesday, September 27, 2017 9:35 PM
  • Hi,

    I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.

    You can mark the helpful post as answer to help other community members find the helpful information quickly.

    You can also share your own solution here and mark it as answer, so it may help others who has similar requirement.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, October 2, 2017 8:41 AM