Quantcast
Channel: Forums - Recent Threads
Viewing all 143529 articles
Browse latest View live

Pre-populating the customer ID in a new case form using Xrm.Navigation.openForm in the Customer Service Hub D365 Online

$
0
0

Hi, using the JavaScript Client API I automatically navigate from the dashboard to a new case form and try to pre-populate its customer Id value.

I use for that purpose the Xrm.Navigation.openForm method:

var entityFormOptions = {};
entityFormOptions["entityName"] = 'incident';
var formParameters = {};
formParameters["formid"] = formIdCase; // formIdCase already contains the case form Id that I need.
formParameters["customerid"] = contactId; // contactId already contains the ID of the contact.
formParameters["customeridname"] = contactFullName; // Contact Full name previously retrieved with the Contact ID.
formParameters["customeridtype"] = 'contact';

Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
	function (success) {
		console.log('Success');
	},
	function (error) {
		console.log(error);
	}
);

The navigation part works always fine and I can see the customer ID (lookup value) pre-populated with no problem.

The error happens when I try to save this new case (I mean when I click on the "Save" button in the case/incident form), I got the following error:

"An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type.

at System.Web.OData.Formatter.Deserialization.DeserializationHelpers.ApplyProperty(ODataProperty property, IEdmStructuredTypeReference resourceType, Object resource, ODataDeserializerProvider deserializerProvider, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)"

 

However, this error only occurs when using the Customer Service Hub. When using the classic D365 interface the case is saved with no problem.

I know why I get that error because using the DevTools in the browser, I can see that I get 400 bad request because after clicking "Save" in the case form the following request payload is being sent:

{
  "title": "Test case 1",
  "processid": "0ffbcde4-61c1-4355-aa89-aa1d7b2b8792",
  "routecase": false,
  "prioritycode": 2,
  "blockedprofile": false,
  "firstresponsesent": false,
  "isescalated": false,
  "statuscode": 1,
  "statecode": 0,
  "ownerid@odata.bind": "/systemusers(29ef7816-8f31-4cb6-ad8f-772147b5a0b1)",
  "customeridtype": "contact",
  "customeridname": "Brian LaMee",
  "customerid_contact@odata.bind": "/contacts(4da0e5b9-88df-e311-b8e5-6c3be5a8b200)"
}

The two Key/value pairs in red (customeridtype and customeridname), in theory, shouldn't been sent because when I manually open a new case form, associate a customer and then save the case I don't see those values in the request payload.

I tried not to use customeridtype and customeridname in the Xrm.Navigation.openForm method but without those parameters (in addition to the customerid value) I cannot see the client name populated in the right "customer ID" field in the case form.

Strange things are:

  • That does not happen when using the classic D365 interface.
  • It only happens when using the Customer Service Hub interface.
  • And more surprising that the only way that it works in the Customer Service Hub interface is if I open the new case form as a popup window (adding as form option entityFormOptions["openInNewWindow"] = true;)

So I wonder how it's the right way to populate a new case using Xrm.Navigation.openForm for the Customer Service Hub interface?

Any help would be greatly appreciated.


Transfer Order Process

$
0
0

Is there a way to implement process to transfer orders means, picking list from warehouse A then packing list on warehouse A, then inventory update / receipt on warehouse B using the the transfer order to ship items from warehouse A to B.

User License On OneBox VM to run Dynamics 365 for finance and operations

$
0
0

I try to test user license access on D365 Onebox VM for development. By adding Users from my Azure tenant organisation, the team member license is attributed automatically to new users. But when i test users access rights on different menu items i get full maintain access on menus even if the menu need entreprise license. 

Is the DEV Onebox VM allow access on menu items based on user license?

If it's based on user license, how can i create user with activity and team member license to test each role with different license types?

Binding team members to a subgrid based on team

$
0
0

Hi,

On a form I wanted to show team members based on the team in a subgrid. Is there any supported way using javascript to fetch the view using fetchxml and bind to the subgrid ? We are working on D365 Onpremise 8.2 version.   

Bank Transfer Duplicate Number

$
0
0

I entered a bank transfer in GP and posted it. I received the GL posting journal with no errors and I am able to go to the Journal Entry Inquiry window to view the transaction. I went back to the Bank Transfer Entry window to enter a new bank transfer transaction and GP is populating the same transfer number I just posted. Does anyone have a suggestion of why this happened and how I can correct this?

Event viewer continuously throw MSCRM tracing error

$
0
0

Event viewer tracing error on CRM 2013 on-premise webserver:

This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.


 

CrmTrace encountered an error. Additional Info:Error in LoadLocalServerRegistrySettings [Unable to cast object of type 'System.String[]' to type 'System.String'.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)

   at Microsoft.Crm.CrmTrace.get_RefreshTrace()

   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)

   at Microsoft.Crm.CrmTrace.Trace(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String message)

   at Microsoft.Crm.Sandbox.SandboxCounter.PublishCounters(SandboxHostConfiguration hostConfiguration)

   at Microsoft.Crm.Sandbox.SandboxHostManager.PingHostsInternal(Object stateObject)

   at Microsoft.Crm.Sandbox.SandboxHostManager.PingHosts(Object stateObject)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.TimerQueueTimer.CallCallback()

   at System.Threading.TimerQueueTimer.Fire()

   at System.Threading.TimerQueue.FireNextTimers() (Reporting Process:w3wp, AppDomain:d:\Program Files\Microsoft Dynamics CRM\CRMWeb\)

::::::::::::::::::::::::::::::::::

 

CrmTrace encountered an error. Additional Info:Error in LoadLocalServerRegistrySettings [Unable to cast object of type 'System.String[]' to type 'System.String'.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)

   at Microsoft.Crm.CrmTrace.get_RefreshTrace()

   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)

   at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)

   at Microsoft.Crm.CrmDbConnection.TrackExecutionTime(IDbCommand command, TimeTracker timer)

   at Microsoft.Crm.CrmDbConnection.InternalExecuteReader(IDbCommand command, Boolean capturePerfTrace)

   at Microsoft.Crm.CrmDbConnection.ExecuteReader(IDbCommand command, Boolean impersonate, Boolean capturePerfTrace)

   at Microsoft.Crm.NotificationService.GetConfigScopeNotifications(ConfigScope scope, Object organizationId, Int32[] events, DateTime lastChecked, Boolean outlookRequest, LocatorServiceContext locatorServiceContext)

   at Microsoft.Crm.NotificationService.GetNotifications(Object organizationId, Int32[] events, DateTime lastChecked, Boolean outlookRequest, LocatorServiceContext locatorServiceContext)

   at Microsoft.Crm.DBNotificationsProvider.GetNotifications(DateTime lastChecked)

   at Microsoft.Crm.NotificationManager.NotificationWatcherThreadProc(Object locatorServiceContext)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart(Object obj) (Reporting Process:w3wp, AppDomain:d:\Program Files\Microsoft Dynamics CRM\CRMWeb\)

 

CrmTrace encountered an error. Additional Info:Error in LoadLocalServerRegistrySettings [Unable to cast object of type 'System.String[]' to type 'System.String'.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)

   at Microsoft.Crm.CrmTrace.get_RefreshTrace()

   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)

   at Microsoft.Crm.CrmTrace.Trace(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Object obj)

   at Microsoft.Crm.Extensibility.SdkTracer.EndTrace(OrganizationResponse response, Guid organizationId, Guid userId, Guid targetUserId, Boolean traceRequest, CallerOriginToken callerOriginToken)

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)

   at Microsoft.Crm.Extensibility.OrganizationSdkService.Execute(OrganizationRequest request)

   at SyncInvokeExecute(Object , Object[] , Object[] )

   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

   at System.ServiceModel.Dispatcher.MessageRpc.Wrapper.Resume(Boolean& alreadyResumedNoLock)

   at System.ServiceModel.Dispatcher.ThreadBehavior.SynchronizationContextStartCallback(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch() (Reporting Process:w3wp, AppDomain:d:\Program Files\Microsoft Dynamics CRM\CRMWeb\)

 

 

 

 

This e-mail message and any files transmitted with it are intended only for the named recipient(s) above and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient(s), any dissemination, distribution or copying of this e-mail message or any files transmitted with it is strictly prohibited. If you have received this message in error, or are not the named recipient(s), please notify the sender immediately and delete this e-mail message.

Email - Image Warp Around

$
0
0

In the email designer I see that one can align an left or right but how do you wrap text around the image?

Error while clicking Print collection letter note

$
0
0

I am at review & process collection letters form and over there when i click on Print >Collection letter note.

I get this error  :"Cannot edit a record in Batch job (BatchJob). Update must be performed inside a transaction."

Debugging it further I captured this at call stack, can anyone please suggest how to fix this error.

Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`add(Dynamics.AX.Application.Exception _exception, string _txt, string _helpUrl, Microsoft.Dynamics.Ax.Xpp.XppObjectBase _sysInfoAction, bool buildprefix, string _label, bool @_helpUrl_IsDefaultSet, bool @_sysInfoAction_IsDefaultSet, bool @buildprefix_IsDefaultSet, bool @_label_IsDefaultSet) Line 336	X++
 	Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`kernelAdd(Dynamics.AX.Application.Exception _exception, string _txt, string label) Line 283	X++
 	[External Code]	
 	Dynamics.AX.ApplicationPlatform.0.netmodule!Dynamics.AX.Application.BatchJob.`update() Line 262	X++
 	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.CheckBatchJobStatus(Microsoft.Dynamics.Ax.Xpp.SysGlobalObjectCache sgoc) Line 2110	X++
 	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.ensureCleanUpBatchJobRunning() Line 2064	X++
 	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.`startOperation() Line 1399	X++
 	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsPrintMgmtController.`startOperation() Line 888	X++
 	Dynamics.AX.ApplicationSuite.118.netmodule!Dynamics.AX.Application.SrsPrintMgmtFormLetterController.`startOperation() Line 115	X++
 	Dynamics.AX.ApplicationSuite.20.netmodule!Dynamics.AX.Application.CustCollectionJourController.`main(Dynamics.AX.Application.Args _args) Line 209	X++
 	[External Code]	
 	Dynamics.AX.ApplicationSuite.Forms.3.netmodule!Dynamics.AX.Application.Forms.CustCollectionLetterNote.FormControl.PrintoutCollectionLetter.clicked() Line 289	X++
 	[External Code]	



Adding deployment admins via powershell error

$
0
0

I'm trying to automate a process to be able to add and remove users as deployment administrators on an automated basis based on a group that is setup within Active Directory. I've got most of it completed however I've run into a CRM specific issue with the users. There are some users who have the same user account name in multiple domains within the same overall forest. The company I work for is currently merging many of these down and for newer users that have only ever been a member of one domain the new-CrmDeploymentAdministrator or remove-CrmDeploymentAdministrator work correctly. However, if the user has been a member of multiple domains within the forest the PowerShell can't find the correct user to associate.

If I run the command against their user explicitly, the command completes without issue, it is only when part of a larger foreach loop where I run into an error message that says: Invalid user name. failed to validate username for given domain. Only existing domain usernames and email addresses are allowed.

The foreach loop looks like this: foreach ($newadmins in $newadmin) { [string] $newadmins = $newadmins New-CrmDeploymentAdministrator -Name $newadmins Write-Output $newadmins - new }

Page action not visible for a user

$
0
0

Hello

I use Microsoft Nav 9.0, I need to provide access to a user to the page Account Schedule Names (103) and Acc. Schedule Overview (490). I followed the followed steps but the user still cannot see the Page action on her Role center page.

1-I created a new permissions set and recorded the accesses to these pages in include execution access to them and read only access to its related tables.

2-I added the permission set to the user

3-I added a Page Action on the Role Center Page associated to the profile the user uses. From the development application I run the page and I see the action but when the user opens its client interface it does not show. In this case I modified the page 9003. For the action I modified the field RunObject, I even compare the other fields with a current visible action for the user.

4-For testing purposes I only changed the RunObject property of the action for a Report associated to another visible action and the new one was shown in the client interface for the user, I assume because of that that it's something related to the user permissions associated to page Account Schedule Names (103)

Thank you in advance for any support.

Enediel

Import Retail Channels using DMF issue

$
0
0

I am trying to import Retail channel entity. I created mappings with Auto generate for RetailChannelId, OperatingUnitNumber, and OperatingUnitParty. Getting this error in the staging data.


Results. Matching record for the read only data source 'OMOperatingUnit' does not exist.

Resource seraching is not working for Expected Bookable Resource

$
0
0

Hi,

While trying to search for a Bookable Resource in Schedule Board, not showing any value in the result.

We have around 5000 Bookable Resource records in the System.

Thanks

SSMS Query goes from 3 seconds to 30 minutes...???

$
0
0

I am attempting a SQL query of some ax tables:

Select PET.TransId

FROM dbo.PROJEMPLTRANS AS PET
JOIN dbo.HCMWORKER AS hw
    ON hw.RECID = pet.WORKER
JOIN dbo.PROJTABLE AS PT
    ON pt.PROJID = PET.PROJID
    AND pt.DATAAREAID = pet.DATAAREAID
JOIN dbo.PROJINVOICETABLE AS pit
   ON pit.PROJINVOICEPROJID = pt.PROJINVOICEPROJID
AND pit.DATAAREAID = pt.DATAAREAID

WHERE PET.TRANSDATE between '2018-11-12' and '2019-02-10'

If I take out the HCMWORKER join OR the PROJINVOICETABLE join, the query runs about 95,000 records in 3 seconds.

Once I have both HCMWORKER and PROJINVOICETABLE in together, it takes 30+ minutes.  I can't seem to understand why either of those joins would cause such an increase in execution time.

Field Mappings Lookup records

$
0
0

Hi All,

I have a job entity which has N:1 relation with store entity.

I have created field mappings in N:1 relation. However, when I select a store from the loopkup record in jobs entity, the other fields are not getting copied over.

Disable Multi Entity Management

$
0
0

I need to disable multi entity management temporarily, so I can post an entry that does not create intercompany entries. So far, I've done the following:

Tools/Setup/multi entity management/company/multi entity management/ - than I checked the box to disable

 Tools/Customize/Customization Status/multi entity management - changed it to "disable".

What other steps need to be taken?


Reproducable error Lot selection and item ledger result

$
0
0

I have an error with lot selection after posting the warehouse shipment. The selected lot is not the one that is deducted in the item ledger entries. The proces can be reproduced. The following setup is used:

Warehouse setup:

Item tracking setup (Lot in and outbound, SN outbound):

The item used in this scenario has the Item tracking linked which is shown above.

Inventory:

With Item Journal post 3 lines for this item, 1 with 4 items and Lot No, 1 with 8 items and Lot No., 1 with 48 items and Lot No.

Proces:

  • Create new Sales Order
  • Add line with the item which contains the above item tracking code
  • Release the Sales Order
  • Create Warehouse Shipment
  • Select Lot No and add serial numbers
  • Result after selecting:
  • Post Warehouse shipment
  • result after posting:
  • Create new Sales Order
  • Add the same Item
  • Try to select the lot from which there should be 1 left, there isn't.

Application Reversal

$
0
0

I have a client that recently did an Application Reversal (from the Application Inquiry/Reversal screen).  They are on SL2015.

The reversal appears to have processed and the payment is once again outstanding, and the invoice seems to now show outstanding, however the invoice does not appear on the payment application screen when they go to apply a new payment.

Please note:

1)  The invoice properly displays on the aging report together with the reversed payment.

2)  The ARDoc table properly displays the fields for an open invoice including

A)  Correct balance amounts in both docbal and curydocbal

B)  OpenDoc displays as 1 (outstanding)

C)  PerClosed is empty which means the document should be outstanding. 

3)  I am not seeing the invoice referenced in any other payment application batches

4)  The aradjust table shows the original invoice and reversal, and no other transactions. 

By all accounts the invoice should be outstanding and visible on the payment application screen, but still does not show.  Is there a step or something that I am missing?

Please advise.  Thank you.

JG

Data Entity - error on RecId using Copy into legal entity

$
0
0

I am trying to copy ProjectEntity and one of my custom fields has a RecId reference, how can I get the value in that field rather than the RecId. 

Currently its returning RecId and it's throwing an error . here is the error message I am getting 

Thanks

Ann

"There should be no profile level error when email server profile is null" error on MS crm tracing logs

$
0
0

Hi All,

I am facing error as below "

Crm Exception: Message: There should be no profile level error when email server profile is null., ErrorCode: -2147220970

[2019-02-18 15:15:59.196] Process:CrmAsyncService |Organization:d446d503-202a-e411-96eb-00155d00018a |Thread:   66 |Category: EmailConnector |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId:  | MailboxOperationCommand.InternalExecute  ilOffset = 0x64

                at MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent)  ilOffset = 0x64

                at AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)  ilOffset = 0xDA

                at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)  ilOffset = 0x99

                at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)  ilOffset = 0x18C

                at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation)  ilOffset = 0x0

                at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)  ilOffset = 0x18

                at MonitoredOperation.Execute()  ilOffset = 0xD

                at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)  ilOffset = 0xC

                at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x70

                at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x4

                at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x0

                at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA2

>Execution failed for async event: {2A662935-2F9B-485F-AD15-5FA0419F1FBC} with mailboxes: 71ea0c09-75be-e711-a3f2-00155d00018a, e5426a86-383f-e411-a5e6-00155d00018a, 7b4efacc-913f-e411-a5e6-00155d00018a, 4298bf28-933f-e411-a5e6-00155d00018a, eec1b9e9-1744-e411-a5e6-00155d00018a. Exception: Unhandled Exception: Microsoft.Crm.CrmException: There should be no profile level error when email server profile is null.

   at Microsoft.Crm.Asynchronous.EmailConnector.TraceLogHelper.AddTraceParameterForEmailServerProfile(MailboxErrorInfo errorInfo, IEmailServerProfile emailServerProfile)

   at Microsoft.Crm.Asynchronous.EmailConnector.ErrorHandler`1.HandleError(IErrorInfo errorInfo)

   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxTestAccessOperationBase.Validate()

   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxOperationBase`1.Execute()

   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent)

HTML webresource - accessing parent form data or calling javascript file

$
0
0

Using CRM 2016 on premise version 8.0.1.97

On a form after user clicks a button an html webresource is displayed in a new window .  In our current 2011 on premise environment this works fine and we can obtain data from the calling form using the ClientGlobalContext.js.aspx

sample code: 

<script type="text/javascript" src="ClientGlobalContext.js.aspx"></script>
    <script type="text/javascript" src="aprv_WebApiHelper"></script>
var parentPage = window.parent.opener;
In 2016, specifically in the Outlook client, getting parent info is not working. Tried various ways and no luck.  Furthermore, only in the Outlook client (2016 client), calling another custom JS file
is not working. In above case if I attempt to call a function in the above aprv_WebApiHleper file it is null or undefined.
If using web-client there is no issue.

I have managed to work around the issue of parent data by passing custom parameters but I cannot get the javascript function call to work.




Viewing all 143529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>