How to validate a newsfeed post before posting in mysites sharepoint 2013

The issue is that user and type or writing anything in newsfeed.Hence to avoid this..is there a way to post the newfeed after validating the content
harsh damania

Hi Harsh,
As mentioned by
Paul Stock it is not possible to validate Feed content by OOTB.
If your requirement allows you develop custom code, then I would suggest to leverage SocialFeedManager API. Use SocialFeedManager API to read/parse the content of the feed and delete it, if the feed does not conferes to your requirement.
clientContext = SP.ClientContext.get_current();
feedManager = new SP.Social.SocialFeedManager(clientContext);
see these links for reference -
http://msdn.microsoft.com/en-us/library/office/jj164025(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj822974(v=office.15).aspx
List of Rest APIs -
http://msdn.microsoft.com/en-us/library/office/dn155789(v=office.15).aspx
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you

Similar Messages

  • How to work JQuery and content editor webpart functionality in sharepoint 2013?

    Hi all,
    I have a requirement to display the list data in share-point page by using JQuery and content editor web-part. could you please any one suggest the process to display the list data using JQuery and ContentEditorWebpart.
    Thanks in advance.
    Thanks,
    phani kumar
    Phani kumar

    Hi,
    From your description, my understanding is that you want to show a list data in a page using jQuery and Content Query Web Part.
    You could use SharePoint REST API to accomplish your requirement, please refer to this code below:
    <div id="listData">
    </div>
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function(){
    //replace your list title
    $.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('customlist03')/items",
    type: "GET",
    headers: {"accept": "application/json;odata=verbose"},
    success: function (data) {
    if (data.d.results) {
    var obj = data.d.results;
    for(var i = 0; i < obj.length; i++)
    $("#listData").append("<div>title "+obj[i].Title+"</div>");
    error: function (xhr) {
    alert(xhr.status + ': ' + xhr.statusText);
    </script>​​
    The screenshot below is my result:
    Please refer to these articles:
    Working with lists and list items with REST
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx
    SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    You can also get list data using JavaScript Client Object Model(JSOM), you could refer to this article:
    How to: Complete basic operations using JavaScript library code in SharePoint 2013
    https://msdn.microsoft.com/en-us/library/office/jj163201.aspx?f=255&MSPPError=-2147217396
    Here is a link about how to add code into page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to renew the expired certificate of workflow manager in sharepoint 2013?

    Dear All,
    How to renew the expired certificate of workflow manager in sharepoint 2013 and what all steps needs to be done inorder the workflow to work properly.
    Thanks & regards,
    Asha

    Hi Asha,
    This should help you
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/bfd3c92b-1a05-4cc5-9b90-8c5c8877dd2c/changing-expired-certificate-for-sharepoint-2013-workflow-manager?forum=sharepointadmin
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How To validate Excise Invoice Posting date(J1iin)  equals to Billing Date

    Hi Experts
    I have required to validate Excise invoice Posting Date(J1iin) should be equal to Biiling date . Can anyone suggest me which user exit i will use for it.
    Waiting 4 reply.
    Regards
    Prateek

    using FM    J_1I7_USEREXIT_EXCISE_BEF_SAVE

  • Excel Data Connection problem for posting Excel on SharePoint 2013

    Hi there,
          I tried to post an Excel file to a SharePoint 2013 site. The file has a column with VLOOKUP formula to look for data from another Excel file posted on the same site. However, once I open the file, it'll show the following message:
    "We can't connect to '[link to file on onedrive/sharepoint]'. Please make sure you're using the correct
    web address"
           I don't recognize the website on this error message and there is no data linked to it. If I click OK, it'll show the following error message:
    "Microsoft Excel cannot access the file '[link to file on onedrive/sharepoint]'. There are several possible reasons:
    - The file name or path does not exist
    - The file is being used by another program
    - The workbook you are trying to save has the same name as a currently open workbook"
           I tried to create another Library and post the file but it still shows me the same error message. I urgently need to fix this error as the file is viewed by several directors. Can someone help??? Thanks a lot!!

    Currently, when a workbook that contains a Data Model is published to a library in Office 365, data refresh is unavailable.
    However, you can use a PowerShell script to configure a workaround.
    donwload this white paper for workaround:
    http://technet.microsoft.com/en-us/library/jj992650.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error in Infopath document merger, post upgrading to sharepoint 2013

    Hi all,
    Post upgradation of sharepoint portal to 2013, infopath document merger is not working for a portal.
    Assuming the error or compatibility issue with earlier infopath template 2007, created the new template; still error persists.
    Attaching herewith the error for reference.
    Looking for the resolution of it, in case somebody had faced this & cracked it.
    regards,
    Sandip

    Hi,
    According to your post, my understanding is that you failed to merge documents in a SharePoint Library.
    To merge forms in a SharePoint Library, we need programmatically effort. Please check whether you Create Custom Merge correctly, refer to the following reference
    http://msdn.microsoft.com/en-us/library/office/ee526363(v=office.14).aspx
    Regarding InfoPath product, I suggest you also open a thread at
    http://www.infopathdev.com/
    I believe at that forum, more people in expertise in InfoPath may help you regarding this.
    Refer to Merge multiple InfoPath forms: 
    http://office.microsoft.com/en-in/forms-server/merge-multiple-infopath-forms-HA010211945.aspx
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Limiting Body size post list in SharePoint 2013 blog site

    Hi,
    I want to fix the length of the body content in the post list in blog site in SharePoint 2013.
    And also i want to set the limit to show number of blog in the home page.
    Please help.
    Thank you!

    Open page in SharePoint Designer.
    When the default.aspx page is opened we can see that the web part is actually a XlstListViewWebPart. Taking a look at the XML Definition we can see that there is a field called RowLimit:
    http://www.sharepointanalysthq.com/2011/02/limiting-the-number-of-blog-posts-displayed-in-sharepoint-2010/

  • Need to know how to allow mail to be sent to my Hosted Sharepoint 2013 site's documents folder/ Using CRD 7 reporting

    I have gotten as far as adding a new app, naming the folder and going into CRD, for the report we need online and attempted to enter the settings information for our sharepoint site. The issue is no matter how I enter the credentials it will not authorize
    and finish the connection. We have tried a couple of different things when it comes to the user name and domain line. we tried: 
    corporate\username; 
    corporate-traffic.com\username; 
    [email protected]..
     we are trying to figure out the correct way to enter this information, mainly what the domain name should be since Sharepoint 2013 is all cloud based.
    My issue is when I get to entering credentials none of my admins credentials work... I think it may be the domain name that is throwing it off. I keep getting the error: server was unable to process request ---> Access is denied. (Exception
    From HRESULT: 0x80070005 ((E_ACCESSDENIED))
    So can anyone point me in the right direction to fix this error and enable the report to email to my sharepoint site documents folder? 
    Just to clarify...
    I need the correct domain info per office 365's Sharepoint to enter the info into our report options on CRD seven report. And how we can enable SMTP to our documents folder on our SharePoint site.

    I asked Christian Steven's Support staff about this and they came out with a fix to allow us to do exactly what I asked in the first post.
    We then had an issue with an error saying Crystal Reports couldn't find the rasauditingw.dll. After a few months of going back and forth they finally looked deeper into the issue and informed me other businesses are having the same issue with the add in
    they designed. They still claim it is not there software but Crystal Reports software that is the issue.
    Just to clarify, the error only appeared after the add in was put in place. Anyways, after they dug some more the following post was the end game.
    "The development team was finally able to get into this issue (seems other businesses are seeing this same issue now). It was in fact an issue with SAP Business Objects and where it was looking for the rasauditingw.dll.
    ****WARNING THIS IS DONE AT YOUR OWN RISK!!****
    I AM NOT RESPONSIBLE FOR DAMAGES TO YOUR PROGRAMS OR SYSTEM THIS FIX MAY CAUSE
    BACKUP YOUR SERVER OR TAKE A SNAP SHOT (VM) BEFORE ATTEMPTING ANY OF THE FOLLOWING
    We copied the rasauditngw.dll file into the system32 folder and the sysWOW64 folder and then renamed the original rasauditingw.dll to rasauditingw.dll.bak (Original file in this directory: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise
    XI 4.0\win32_x86).
    So far so good. We have not seen any errors in the last couple of days since the fix. I hope this helps others who run into this mystery problem. Christen Steven was gracious enough to dig into this problem and quell my frustrations and issues with the 
    "crd.exe - Entry Point Not Found" error" "
    We haven't seen any issue with our CRD server since we moved the copies of that .dll file over into our sys32 folder and sysWOW64 folder on the CRD server (our server where the Christian Steven software resides).

  • How to set item level permission for list item in SharePoint 2013

    Hi we had a custom List "ABC".
    List had 2 columns:
    Project Name: (P1, P2, P3, P4, P5, P6)
    Project Leads: (PL1, PL2, PL3, PL4, PL5, PL6).
    All project Leads can have permission to edit only their Project (P1, P2, P3) like
    PL1 can edit P1
    PL2 Can edit P2.....
    But my Question is how to restrict PL2 cannot have permission to edit P1
    is it possible to set permission for this through OOTB in SharePoint 2013.
    Any help will be appreciated......

    Hi
    check this similar post
    http://social.technet.microsoft.com/Forums/ro-RO/e1ea3655-0c6f-4b3d-a336-c42e8eb54c09/rights-to-edit-own-items-for-list-residing-on-publishing-site?forum=sharepointdevelopmentprevious
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • [Forum FAQ] How to remove div characters from multiline textbox field in SharePoint 2013

    Scenario:
    Need to avoid the div tags and get data alone from multiline textbox field using JavaScript Client Object Model in SharePoint 2013.
    Solution:
    We can use a regular expression to achieve it.
    The steps in detail as follows:
    1. Insert a Script Editor Web Part into the page.
    2. This is the complete code, add it into the Script Editor Web Part and save.
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    function retrieveListItems() {
    // Create an instance of the current context to return context information
    var clientContext = new SP.ClientContext.get_current();
    //Returns the list with the specified title from the collection
    var oList = clientContext.get_web().get_lists().getByTitle('CustomListName');
    //use CAML to query the top 10 items
    var camlQuery = new SP.CamlQuery();
    //Sets value that specifies the XML schema that defines the list view
    camlQuery.set_viewXml('<View><RowLimit>10</RowLimit></View>');
    //Returns a collection of items from the list based on the specified query
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(this.collListItem, 'Include(Title,MultipleText)');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded() {
    //Returns an enumerator to iterate through the collection
    var listItemEnumerator = this.collListItem.getEnumerator();
    //Remove div tag use a regular expression
    var reg1 = new RegExp("<div class=\"ExternalClass[0-9A-F]+\">[^<]*", "");
    var reg2 = new RegExp("</div>$", "");
    //Advances the enumerator to the next element of the collection
    while (listItemEnumerator.moveNext()) {
    //Gets the current element in the collection
    var oListItem = listItemEnumerator.get_current();
    alert(oListItem.get_item('MultipleText').replace(reg1, "").replace(reg2, ""));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Result:<o:p></o:p>
    References:
    http://www.w3schools.com/jsref/jsref_obj_regexp.asp
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Nice article :)
    If this helped you resolve your issue, please mark it Answered

  • How scheduling the data refresh for a published Excel workbook - SharePoint 2013

    Hi,
    I've implemented an Excel workbook that connects to a SSAS Tabular data source and I've published it on SharePoint.
    Now, how can I implement a scheduled data refresh if it is possible?
    Thanks

    Hi pscorca,
    If  my understanding is correct , you want to implement a scheduled data refresh on SharePoint 2013 and the data is from a SSAS Tabular data source.
    Below are some articles for you to take a look:
    Data Sources Supported (SSAS Tabular)
    http://technet.microsoft.com/en-us/library/gg492165.aspx
    Get data from Analysis Services
    http://office.microsoft.com/en-in/excel-help/get-data-from-analysis-services-HA102837073.aspx
    PowerPivot Data Refresh with SharePoint 2013 and SQL Server 2012 SP1 (Analysis Services)
    http://technet.microsoft.com/en-us/library/jj879294.aspx
    Refreshing PowerPivot Data in SharePoint 2013
    http://blogs.msdn.com/b/analysisservices/archive/2012/12/21/refreshing-powerpivot-data-in-sharepoint-2013.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to get attendies count for a calendar list in sharepoint 2013?

    Hi everybody,
    I am using calendar list in SharePoint 2013 for my project.
    Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
    Because I want to display the fields like
    TOTAL SEATS =20
    Attendees= Need count
    Avail seats= total - Attendees count.
    In that way I want to show information about availability seats for training session.
    Regards,
    Dhayanand

    Hi Dhaya
    Please refer the links.Hope it helps :-)
    http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
    http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow

  • How to build high usability navigation for Power View on SharePoint 2013?

    I have Power View on SharePoint 2013. I have both SSAS Multidimentional and Tabular model in use.
    I have several Report.drlx file in Report libary in SharePoint.
    When I click the file, it works fine, but I feel that there are usability problems like:
    A) Getting back to SharePoint site is not intuitive. Difficult to find home.
    B) Diffucult to move between report to another. Need to return Document library.
    What is best practise for displaying several Power View reports on SharePoint?
    Kenny_I

    Hi Kenny_I,
    Just as you said, we cannot directly navigate to Home page when we view an .rdlx report in SharePoint site. We need click the Arrow to go to the previous page (Document Library), then click “Home” to navigate to Home page. If we want to move from a report
    to another report, we should still use the same way. This is by design.
    If you want to jump from one report to another report, we can add a hyperlink to a text box in a sheet or view. Personally, I understand your feeling and how frustrated when you find this issue. So, it is my pleasure to help you to reflect your recommendation
    to the proper department for their consideration. Please feel free to submit your situation on our product to the following link:
    https://connect.microsoft.com/.Your feedback is valuable for us to improve our products and increase the level of service provided.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to code a custom content search web part in Sharepoint 2013?

    Hi,
    Do you have any idea on how to create a custom Content Search Web part? What I mean is, I will code it in Visual Studio 2012.
    Regards,
    Napster

    check this
    http://social.technet.microsoft.com/Forums/ie/en-US/13f1e581-4250-48c7-93a6-ef7ae2bb14c5/is-this-there-a-way-to-programmatically-set-the-query-text-or-append-additional-kql-filtering-to-a?forum=sharepointsearch
    http://onlinecoder.blogspot.in/2013/08/sharepoint-2013-content-search-web-part.html

  • How to keep same database with two different names in SharePoint 2013 for two different applications

    Hi All,
    I have very strange situation.
    I had SP2010 production database(wss_content_contoso) migrated to SP13 few months back to migrate one site collection only while I have 15 site collections stored in this database and created a site contoso.com
    Now, I want to migrate same(wss_content_contoso) SP2010 database to SP13 and want to create contoso2.com.
    I changed database name from wss_content_contoso to wss_content_contoso2 and assigned newID during mount process.
    After this exercise, I don't see any site for contoso2.com and issue seems to be the same database. 
    My question is!!!!
    How I can keep both databases(actually same database with different names) and run both application simultaneously?
    Any help appreciated!!
    Thank you,
    AM
    AM Senior SharePoint Consultant

    You need to run Backup-SPSite/Restore-SPSite on each Site Collection you want to 'duplicate'. You cannot restore the same Content Database to the same farm as the Site Collections have the same GUID, which is stored globally for the farm.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for