How to get site workflow tasks not list workflow tasks in SharePoint 2013 programatically ?

i want to customize wrkstat.aspx based on site workflow not list workflow, so i want to filter section of tasks view to filtering based on site workflow, i made this to list workflow and i cannot do that to site workflow.
Please advise me.
Thanks.

Hi Ramakrishnan,
you can use the below code to post comments in newsfeed. I think this will helps you.
var feedManagerEndpoint;  
// Get the SPAppWebUrl parameter from the query string and build  
// the feed manager endpoint.  
$(document).ready(function () {  
    var appweburl;  
    var params = document.URL.split("?")[1].split("&");  
    for (var i = 0; i < params.length; i = i + 1) {  
        var param = params[i].split("=");  
        if (param[0] === "SPAppWebUrl") appweburl = param[1];  
    feedManagerEndpoint = decodeURIComponent(appweburl)+ "/_api/social.feed";  
    postToMyFeed();  
// Publish a post to the current user's feed by using the   
// "<app web URL>/_api/social.feed/my/Feed/Post" endpoint.  
function postToMyFeed() {  
    $.ajax( {  
        url: feedManagerEndpoint + "/my/Feed/Post",  
        type: "POST",  
        data: JSON.stringify( {   
            'restCreationData':{  
                '__metadata':{   
                    'type':'SP.Social.SocialRestPostCreationData'  
                'ID':null,   
                'creationData':{   
                    '__metadata':{   
                        'type':'SP.Social.SocialPostCreationData'  
                'ContentText':'This post was published using REST.',  
                'UpdateStatusText':false  
        headers: {   
            "accept": "application/json;odata=verbose",  
            "content-type":"application/json;odata=verbose",  
            "X-RequestDigest": $("#__REQUESTDIGEST").val()  
        success: getMyFeed,  
        error: function (xhr, ajaxOptions, thrownError) {   
            alert("POST error:\n" + xhr.status + "\n" + thrownError);  

Similar Messages

  • How to get current logged in user's star rating in SharePoint 2013

    Hi,
    Currently,  I am developing a custom web part to show star rating for documents, everything is done.
    However,when user hover on the star I want a tooltip message("Your current rating is 1..."), similar to what we have 
    in libraries(or what the sharepoint by default provides in libraries) . So can I get the user specific rating depending upon 
    the logged in user using code(.net or CSOM anything will work)

    using the below code you can get the rated by user along with the rating , it's easier to just notify the user that her already rated the document 
    var acontext = new SP.ClientContext.get_current();
    var lists=acontext.get_web().get_lists();
    var l =lists.getByTitle("Documents"); //your document libraty
    var aitem=l.getItemById(27);//Item id
    acontext.load(aitem, "RatedBy", "ID", "Ratings");
    acontext.executeQueryAsync(function(){
    var RatedBy= aitem.get_item('RatedBy');
    if (!SP.ScriptHelpers.isNullOrUndefined(ratings)) {
    for (var i = 0; i < RatedBy.length; i++) {
    var user = RatedBy[i];
    if (user.get_lookupId() == _spPageContextInfo.userId) {
    //show that you already rate it
    break;
    },function(s,e){alert(e.get_message());});
    another way is to use CAML query to check if the current user id is within the RatedBy multi user field
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • FF not running (not listed in Task Manager) but get message it is (and Profile missing)?

    WIN7 (86). Can't open FF. Get message it's running, but it isn't (not listed in Task Manager showing all processes). Tried to access my Profile, but search was unsuccessful.

    Try to delete the profiles.ini file to force Firefox to create a new default profile.
    *http://kb.mozillazine.org/profiles.ini_file
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    See also:
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How to get Purchase Order Number in a workflow

    Hi all,
    I am a new guy in workflow.
    I created one simple workflow - If purchase order is changed, then an email should be triggered.
    It is working fine.
    I want to add in the subject as well as in email text, the purchase order no which is changed.
    I tried to find this thing in existing threads.But m not able to find it.
    Please do the needful.
    Regards,
    Sunny

    Hi Sunny,
    You can pass the data to External User also..!!
    Sending Mail to Outlook : U need the Following things done for this:-
    1> Use the Mail Step in the WF and Choose the Receipient as the E-Mail Address and Give the E-Mail Address there.
    2> Check the Configurations that need to be done in Transaction SCOT. SMTP Server Settings are done to get the Desired Results
    To get Workitems in Outlook..!!.https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    Problem in transferring the workitems into OUTLOOK
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    Workflow Items in Outlook
    In the Mail Step Type - check the Binding of the WF Container with the Task Container.
    You have the ICON for Variable "Insert Expression" near the Subject line. Double Click that and you can find there your WF Container for the BO Used..Click on that and select the attribute that corresponds to the PO-Number. Copy paste the same in the Mesg Body also from there..
    Let me know if you still have any issues.
    Regards,
    Kanika

  • How to get actual value from LOV list

    Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
    Thanks.

    Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
    <html:select property="UserJobCompanyId"
                             disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
                             onchange="submitform();">
                  <html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>                                                     
                </html:select>and I want to get CompanyID of selected Company.
    Thanks, again.

  • My workflow is not listed in the GOS (Services for object)

    Hello Experts,
    I developed a workflow and linked the BO ZBUS2081. This is sub type of standard BO BUS2081. I am using the custom event INVOICEBLOCKED to trigger the workflow. The workflow is triggered propely when the invoce is created (with block) thru MIRO and I can see the workflow in SWEL or SWI6 or SWI14.
    But, the workflow is not listed in the services for objects button of the invoice display using MIR4.
    If I use the standard event 'BLOCKEDQUANT' as starting event, the workflow is triggered and I can view it in services for object.
    In the table SWW_WI2OBJ has all entries about the workflow triggered using standard event or custom event.
    How can I make the services for object in invoice list my workflow that was triggered using custom evet?
    Appreciate your help.
    Regards
    Siva S

    Hi Siva
    Thanks for marking this thread answered.....We are glad that your issue was solved :-) ....... But I do agree with Rick Bakker, the first correct answer was by Paul Bakker and I had just elaborated on that.
    Please mark the first correct answer as the "green" one.
    Regards,
    Modak

  • How to get the Ap credit memo list?

    Dear Experts,
        Could you tell me how to get the AP credit memo list?
         Is it standard report ?
    Thanks!
    Xinling

    Hi,
    Go to transaction code FB03 and do following steps :
    1. Click on
    2. Click on
    3. Next Screen
    Double Click on Transaction Code if it is not Green
    4. Next Screen
    Enter the transaction code through which you are generating Credit Memo or click on Multiple Selections in case you are using more than one.
    5. Execute
    Regards,
    Tejas

  • HT2499 how to get mac dvd player not to play all and stop at each title?

    how to get mac dvd player not to play all and stop at each title

    Play all chapters, i mean.
    I have a DVD and I would like to just play a chapter, and discuss it, without the next chapter automatically starting. Usually DVD players have the "Play all" you can turn off and on...but I don't see it with the Mac player.
    OS 10.4.
    Macbook 6
    Thanks so much!

  • I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    Welcome to the Apple Community.
    If you haven't turned find my phone off on the device, it should just reappear next time it is connected to an appropriate network. If you have turned off find my phone, turn it back on.

  • How to get Mac Messages to NOT save chats?

    How to get Mac Messages to NOT save chats?
    I went through the Preferences but I do not see where I can check/uncheck save chats.  Will someone help direct me?

    Hello mayonnaise18,
    Thank you for the question.  You can disable the option to save chats in the Messages tab in Messages>Preferences:
    Automatically save conversations when you close them
    Choose Messages > Preferences, and then click Messages.
    Select “Save history when conversations are closed.”
    These steps are to enable the option to save messages, but you would want to uncheck the option to "Save history when conversations are closed."  You can find the full article here:
    Messages (Mountain Lion): Save conversations
    http://support.apple.com/kb/PH12012
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Applescript to make task note part of task name

    If I have a task say
    Do this
    Task Note - @work
    Is it possible for me to dump the task note @work to task name and name becomes
    Do this @work
    Can this be done for all my tasks.

    Your request is a bit vague, but see the script below. I suggest that you backup your iCal before running this in case you don't like the result. Change the calendar to the one you want.
    -- John Maisey -- www.nhoj.co.uk -- 29 Mar 2010
    -- This script gets all todos in the specified calendar and moves their notes that contain the requires text into the title.
    set calendarName to "Home"
    set theText to "@work"
    tell application "iCal"
    set myTodos to (todos of calendar calendarName)
    repeat with myTodo in myTodos
    if (description of myTodo) contains theText then
    set (myTodo's summary) to (myTodo's summary) & " " & theText
    end if
    end repeat
    end tell
    Best wishes
    John M

  • Page not found error while opening sharepoint 2013 site

    page not found error while opening sharepoint 2013 site 
    Please help me on this

    Hi,
    Please check the log file to find more information about this issue. The path of the log file is:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.
    In addition, please make sure the URL of the site is correct.
    Please check whether you could access other pages in the problematic site.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • InfoPath Filler 2010 will not open a form in SharePoint 2013

    I'm having a problem with the coexistence of SharePoint 2013 and Office 2010, specifically InfoPath.
    We are running SharePoint 2013 Standard, so we do not have access to web-enabled InfoPath forms, which is okay since all of our client machines have InfoPath Filler as part of their Office 2010 install.
    The problem is I have created a form and published it to a SharePoint 2013 library but when I try to create a new document in the library I get a page cannot be displayed error or the page just hangs. 
    However, as a troubleshooting step, I installed InfoPath 2013 on my client machine and when I access the library and create a new document it opens the form successfully. 
    I've changed the settings of the library so it uses the client application instead of trying to open in the browser, I've changed the trust settings to every possible configuration I can think of but I cannot get InfoPath 2010 to open a form published to
    SharePoint 2013.
    Is this a known compatibility issue, a bug, or am I missing something?
    Thanks,
    Kevin

    I encountered this issue recently. Some of our suers have upgraded to Office 2013 but a lot still are on office 2010. I did not want a solution that relied heavily on the users to do something, like upgrade to 2013 or modify 2010. That's not ideal.
    I realized the solution was very simple. I edited the InfoPath template within the document library in sharepoint > Form Options > Compatibility, change it to InfoPath filler form 2010. It still works for me and I have version 2013, so now it allows
    users with older versions to use it as well. I confirmed with the affected users that they can now access the form.

  • How to hide the Columns and Views for Login user in SharePoint 2013

    Hi Friends,
    How to hide the Columns and Views for Login user in SharePoint 2013? Is it possible using OOB features? If not possible how can we hide the Columns and Views for Login user?
    Could you please help on this.
    Thanks,
    Tiru
    Tiru

    Hello Tirupal,
    There is no OOB way to do this.
    Please check this codeplex solution to achieve the same.
    https://sp2013columnpermission.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

Maybe you are looking for

  • Kernel 2.6.32 does not work with RT2860 Wireless Card

    since 2.6.31 my RT-2870 is not longer working ifconfig says that the Wireless ra0 was renamed to wlan0 and since then its not longer working since 2.6.32 my RT-2860 (build in) is not longer working too it was renamed from ra0 to wlan0 too and read ab

  • CTS+ error while transporting

    Hi Folks, We have configured CTS+ for our systems using PI7.1 system as the CTS+ system. Please find the below error. Deployment Transport request   : SIDK900107 System              : SID tp path             : tp Version and release: 372.04.40 701 CT

  • [SOLVED] Remapping keys using udev hwdb doesn't work on rightAlt

    hi, I had posted this topic in the [ newbie corner ] subforum for days, but got no repliy. I hope I can find luck  here. I'm trying to use udev hwdb for swapping pairs of keys ( esc, caps_lock ) and ( rightAlt , rightCtrl ) . I followed the instructi

  • Plot to different layers in Origin

    Hi everyone, I'm trying to figure out how to plot data I collect in Labview to graphs in Origin.  My real program collects 5 columns of data and sends it to a new workbook in Origin.  My problem is with plotting columns to separate layers.  I attache

  • We aren't getting any volume with teacher, band, my guitar.

    We've turned the volume up on the computer.  We put the settings in mixer on for the speakers.  The computer is picking up my guitar in tuner, but we aren't getting anything for sound on the computer with regards to the guitar, teachers voice, band,