I am trying to access an web application through provider hosted App. In the webapplication, at
Any help would be greatful. |
The remote server returned an error: (401) Unauthorized - Provider hosted App
How can i replace already exist file in JSOM
Hello Experts,
I have code for Uploading File in Library. but i want to replace file if already exist.
var clientContext = new SP.ClientContext();
var oWeb = clientContext.get_web();
var oList = oWeb.get_lists().getByTitle(selectedDCCycle);
var attachmentFolder = oWeb.getFolderByServerRelativeUrl(selectedDCCycle + "/" + "General Documents");
var bytes = new Uint8Array(arrayBuffer);
var i, length, out = '';
for (i = 0, length = bytes.length; i < length; i += 1)
{
out += String.fromCharCode(bytes[i]);
}
var base64 = btoa(out);
var createInfo = new SP.FileCreationInformation();
createInfo.set_content(base64);
createInfo.set_url(fileName);
attachmentFiles = attachmentFolder.get_files().add(createInfo);
Please Help!
Help with a List Lookup Column
The endpoint /_vti_bin/xxx.svc is not accessible in the context of a SharePoint App
Hi,
I develop custom oData service under ISAPI folder and develop app to consume that service. And i got the following error message:
The endpoint http://app-15a87dc7e1cd9a.spdemoapp.com/_vti_bin/xxx.svc is not accessible in the context of a SharePoint App.
If I access the service from host web url, it is working fine. Mean that service is working fine.
Which setting did i miss out ?
kmhsad
spilled strawberry milk on surface book keyboard
hi, i spilled a drink on my surface book keyboard. its all dry now, i detached it and ive left it upside down for a few hours. the mouse wont work and the keys are stiff (drink had sugar in it so it dried and got sticky on the inside). called microsoft and they were uselsss, voice answering machines just directed me to a website.any ideas? i wanna try to avoid going to the microsoft store, my warranty just expired in january.
SharePoint 2013 Date formatting Issue
Hi ,
While using calculated Date column for comparison and it is less than 12 then month and Date place is getting replaced and results into wrong calculation.
Eg; For Comparing
02/05/2019 (Calculated Date Column )and 09/04/2019 (Today's Date )
20190502-20190409 (Actual )
20190205-20190409 (System Date )
Kindly help as it is calculating wrong value in the system .
Regards,
Shushant
sharepoint provider hosted app complete crud with c# based client object model sample
does anyone have sharepoint provider hosted app complete crud with c# based client object model sample? I need little complex sample with lookups, dropdowns, dates, richtext, checkboxes etc.
I use this example
http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/
but I need more complex one in mvc list crud
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead
Odisha # 91 9928979713 # Ex love problem solution baba ji In Bhagalpur
nashik # 91 9928979713 # Ex love problem solution baba ji In Gaya
bangalore # 91 9928979713 # Ex love problem solution baba ji In Patna
kerala # 91 9928979713 # Ex love problem solution baba ji In Krishnanagar
karnataka # 91 9928979713 # Ex love problem solution baba ji In Anantnag
URL Tokens for custom actions give the wrong ListId, SelectedListId and ListUrlDir from Library webpart on a Modern page
Thanks for any asssistance.
I have several provider hosted SharePoint Add-ins with custom actions on the CommandUI.Ribbon for document libraries that interact with the list and selected items. I get the values from the Command Handlers URL (SelectedListId, ListId, SelectedItemId)
Issue is the SelectedListId, ListId & ListUrlDir values in the CommandUIHandler::CommandAction are the 'Site Pages' list when invoked from a webpart on a Modern page. So a custom action invoked from a Modern page fails.
Since the Custom Action is associated with 'Document Library' and not the 'Site Pages' list, I would expect the values in the CommandAction would represent the 'Document Library' values. Similar to how it works on the Document Lib's view pages.
From the Modern page web part toolbar:
SelectedListId = 'Site Pages' list ID
ListId = 'Site Pages' list ID
ListUrlDir = 'Site Pages' URL
SelectedItemId = The selected item from the list shown by the webpart (document library)
From the List's (Document Library) view page, classic Ribbon or Modern toolbar:
SelectedListId = The 'Document Library' list ID
ListId = The 'Document Library' list ID
ListUrlDir = The 'Document Library' list URL
SelectedItemId = The selected item from the list
Regards,
Al
is it possible to allow the classification of one single field in an read only library?
Here is what I mean:
This is the 'BET Library Read-only' where the user BET can only read files, not edit them.
However, I want the user BET to have the option to fill in the 'FileKey' field only. The user BET should not be able to do any other changes to the documents besides filling in the 'FileKey' field.
Is this possible?
Many thanks.
Project Summary Web Part Unable to load
Hi All,
We have created number of sites using one single site template in PWA. All sites are working fine but in some of the sites Project Summary Web part is giving an error message saying "This webpart was unable to load. For more information, please contact your server administrator <Correlation GUID>" . I have also checked it with Tenant admin permissions. I have tried adding the same Web part again. I tried deleting and adding the web part but still it is showing the same error. Please help me to resolve this issue. This is critical.
I have added the screen shot for your reference.
External users cannot update multiple user fields in a list
This is a problem that just arose recently. I have a SharePoint app that creates new items and updates items in a SharePoint list. Up til last week, the app would allow guest users (invited to the site with Edit permissions and the status is Guest in the Microsoft 365 Admin center) to update a SharePoint list.
The problem is that when the app updates the SharePoint list, the multiple user field is left blank even though the ProcessQuery tries to write to it... (the field in this example is called SME)
<Request xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="Javascript Library"><Actions><Method Name="SetFieldValue" Id="1716" ObjectPathId="1635" Version="6"><Parameters><Parameter Type="String">SME</Parameter><Parameter Type="Array"><Object TypeId="{c956ab54-16bd-4c18-89d2-996f57282a6f}"><Property Name="Email" Type="Null" /><Property Name="LookupId" Type="Number">41</Property><Property Name="LookupValue" Type="Null" /></Object></Parameter></Parameters></Method></Actions><Query Id="1720" ObjectPathId="1635"><Query SelectAllProperties="false"><Properties><Property Name="SME" ScalarProperty="true" /></Properties></Query></Query><ObjectPaths><Identity Id="1635" Name="a7d9cc9e-e03e-0000-343b-d19085e17f0a|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:e7b82a02-d182-46b6-abf0-c2481f741a5f:web:f75e3348-b93a-4b97-9e38-08f9c0fb1b77:list:577d82bc-6034-4fc5-a8c3-b9bf55365099:item:449,1" /></ObjectPaths></Request>The field is left blank
[ {"SchemaVersion":"15.0.0.0","LibraryVersion":"16.0.8713.1226","ErrorInfo":null,"TraceCorrelationId":"a7d9cc9e-804e-0000-343b-d3c77be80273" },1720,{"SME":null} ]Has anybody else seen this issue? I filed a ticket with Office365 but they bounced me to the Microsoft Developer Support team but I can't figure out which category to submit the new ticket. There's no SharePoint Online option.