+ Post New Thread
Results 1 to 13 of 13
Coding Thread, Any sharepoint gurus out there? in Coding and Web Development; Hi, Am hoping someone with sharepoint knowledge will be able to help. I created list where a user will enter ...
  1. #1
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8

    Any sharepoint gurus out there?

    Hi,
    Am hoping someone with sharepoint knowledge will be able to help.

    I created list where a user will enter info about a news item they want published on website, newsletter etc. On the list, there is a multiple choice field asking where they want the news display. its a multiple choice option. I created a custom workflow where by if a user chooses website, the website administrator will get the email with the info or if they chose any of the other options, someone else would get the email. This works fine but if a user wants it displayed on all 4 options (website, newsletter, twitter and newspaper) the custom workflow doesnt send the email.

    We have Sharepoint 2010 and am using sharepoint designer 2010 for creating workflows.

    Hope this makes sense.

    I anyone able to suggest how to sort this.

    cheers,

    Haz

  2. #2
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,161
    Thank Post
    705
    Thanked 172 Times in 156 Posts
    Blog Entries
    78
    Rep Power
    86
    @apearce *BUMP*

  3. Thanks to TheScarfedOne from:

    apearce (1st September 2014)

  4. #3

    Join Date
    Feb 2008
    Location
    Birmingham
    Posts
    418
    Thank Post
    36
    Thanked 176 Times in 111 Posts
    Rep Power
    43
    How are you doing the select the 4 options?

  5. Thanks to apearce from:

    has (1st September 2014)

  6. #4
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    its an if statement.

    If Current Item: Display On equals Website
    email user a
    else if current Item: Display On equals Twitter
    email user b

    display on is the multiple choice field.

  7. #5


    Join Date
    May 2009
    Posts
    3,278
    Thank Post
    290
    Thanked 883 Times in 661 Posts
    Rep Power
    339
    Drop the elseif and do four separate if's. The else if will not process the else if the first statement is true.

  8. #6
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    no worries. how would it work if a user selects news to be displayed on website (managed by user a) and twitter (managed by user b).

  9. #7


    Join Date
    May 2009
    Posts
    3,278
    Thank Post
    290
    Thanked 883 Times in 661 Posts
    Rep Power
    339
    Each if statement checks the content of it's own checkbox and all conditions are checked for regardless of whether a preceding one is true. With an if else structure, the else won't be processed if the if condition is true.

  10. #8
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    it works if i select one choice from the multiple choice field i.e website. but if i select both website and twitter (an an example) i dont get an email.

  11. #9
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    i have attached a pic of the workflow setup and the second pic is the list.
    workflow.jpg

    list.jpg

  12. #10


    Join Date
    May 2009
    Posts
    3,278
    Thank Post
    290
    Thanked 883 Times in 661 Posts
    Rep Power
    339
    You could try them as different/separate steps. Sharepoint may be imposing it's own else logic within a single step.

  13. #11
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    when multiple choices are selected, its showing up as Website, Twitter. i think thats why the statements are not working.

  14. #12


    Join Date
    May 2009
    Posts
    3,278
    Thank Post
    290
    Thanked 883 Times in 661 Posts
    Rep Power
    339
    Ah. OK. There should be a "contains" option you could use instead of equals.

    i.e.

    if <field> contains "Twitter" then

  15. Thanks to pcstru from:

    has (1st September 2014)

  16. #13
    has
    has is offline

    Join Date
    Jul 2011
    Location
    UK
    Posts
    70
    Thank Post
    21
    Thanked 8 Times in 7 Posts
    Rep Power
    8
    Quote Originally Posted by pcstru View Post
    Ah. OK. There should be a "contains" option you could use instead of equals.

    i.e.

    if <field> contains "Twitter" then
    That worked. your a life saver. cheers again

SHARE:
+ Post New Thread

Similar Threads

  1. Any Wyse Experts out there?
    By tmcd35 in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 13th May 2010, 12:10 PM
  2. Any XBMC users out there?
    By CHR1S in forum General Chat
    Replies: 12
    Last Post: 2nd November 2009, 11:37 AM
  3. Any Sharepoint Gurus Here?
    By Butuz in forum How do you do....it?
    Replies: 4
    Last Post: 24th September 2009, 12:49 PM
  4. Are there any Sharepoint Gurus out there?
    By Ben_Stanton in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 24th January 2009, 10:51 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •