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

Service invoice

$
0
0

Hi,

Can you help us for resolve below error :

Microsoft Dynamics NAV
---------------------------

You cannot select blank Place of Supply for Document Type Invoice and Document No SER1800010 for Line No. 10000.
---------------------------
OK
---------------------------

Note : GST Place of Supply is not editable so maybe somethings missing in setup part. Can anyone help me for resolve it?


Type void is not supported in this type of lookups in D365FO

$
0
0

Hi Experts,

I am trying to get vendor account number and vendor address using following code:

[FormControlEventHandler(formControlStr(InventTransferOrders, InventTransferTable_ABC_ShipTo), FormControlEventType::Lookup)]
public static void InventTransferTable_ABC_ShipTo_OnLookup(FormControl sender, FormControlEventArgs e)
{
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
QueryBuildRange queryBuildRange;

SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(VendTable), sender);

queryBuildDataSource = query.addDataSource(tableNum(VendTable));

sysTableLookup.addLookupField(fieldNum(VendTable, AccountNum),true);
sysTableLookup.addLookupMethod(tableStaticMethodStr(VendTable, Address_Vend));
sysTableLookup.addLookupfield(fieldNum(VendTable,Party),true);

sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();

We are getting error "Type void is not supported in this type of lookups".

Note : Here tableStaticMethodStr we are using for Address_Vend method (Static method).

Please help us.

Thanks & Regards

Rahul

 

Sync contacts and tasks to outlook using Dynamics 365 App for outlook.

$
0
0

Hi,

I wanted to know if we can still sync contacts and tasks from Dynamics 365 (on-premise) to outlook using the new Dynamics 365 App for outlook? If so can anyone guide me the  steps to do the same?

Our client currently uses Dynamics 365 for Outlook (plugin) and we are trying to change it and make them use the App for Outlook.

I read various User Guides but did not find a way for the sync to happen

Kindly let me know.

How to cancel approval process

$
0
0

Hi everyone,

I used set a approver in the "Approval User Setup" for creating purchase order. So I can "Send Approval Request" and current PO will be pending approval status. Then I remove the approver in the "Approval User Setup". However, the order still need to be approved before Post. How could I cancel the approval process. Thanks in advance!!

Mapping Error

$
0
0

     Hi,

  To use Google map in CRM, with below code I am getting error..

  url===community.dynamics.com/.../google-maps-integration-with-dynamics-crm

<html>

<head>
<script>
function initialize() {
var map_canvas = document.getElementById('map_canvas');
var map_options = {
center: new google.maps.LatLng(-26.4420246,133.281323),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(map_canvas, map_options)
var geocoder = new google.maps.Geocoder();
var address = window.parent.Xrm.Page.data.entity.attributes.get('address1_composite').getValue();
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
map.setZoom(14);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
//alert("Geocode was not successful for the following reason: " + status);
}
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div style="width: 100%; height: 100%;" id="map_canvas"></div>
</body>
</html>

Dynamics 365 how to get count of the records.

$
0
0

Hello All Experts,

I have a method defined as below.

i need to know how could i get the records count .

function GetPhoneCallDataCount(xmlQuery) {
debugger;
var fetchXmlQuery = xmlQuery;
var req = new XMLHttpRequest();
req.open(
"GET",
window.parent.Xrm.Page.context.getClientUrl() +
"/api/data/v8.2/phonecalls?fetchXml=" +
encodeURIComponent(fetchXmlQuery),
true
);
req.setRequestHeader("Prefer", 'odata.include-annotations="*"');
req.onreadystatechange = function () {
if (this.readyState === 4) {
req.onreadystatechange = null;
if (this.status === 200) {
var results = JSON.parse(this.response);
alert(results.length.toString());
console.dir(results);
} else {
alert(this.statusText);
}
}
};
req.send();

}

GetPhoneCallDataCount ();  calling method as this .

i need to get only record count.any support will be appreciable.

Delegate workflow item without able to access the workflow item

$
0
0

Hi,

I am in a situation where i want to delegate a workflow item but the user which will receive the workflow item may not access the workflow item. He should only approve the workflow item. Is there a functionality in AX which would give me the right solution?

Extend Item Entity API problem with itemattributes jsonarray

$
0
0

Hello!

I am trying to extend the default "Item Entity" API Page in NAV BC. What I want is to add a jsonarray to a new property on the page called "ItemAttributes"

Problem is when I run this API in Postman the value of the property "ItemAttributes" is returned as a string and not as an jsonarray.


How to log a technical support incident in PartnerSource?

$
0
0

Hi,

How can I log a new support incident for AX 2012 R3 in PartnerSource?

The support page redirects me to LCS, where I don't have any 2012 R3 projects active at the moment (only 365 solutions).

Does anyone know how I still can contact Microsoft?

Thanks!

Plug-In Calling WebService with WebClient

$
0
0

Hi all,

my solution is composed from a custom plug-in and a custom webservice.

The plugin (Async PostOperation) use WebClient class to call an external webService without authentication. This si the code:

localContext.Trace(json);

try
{
    localContext.Trace("Sleep at {0}", DateTime.Now.ToLongTimeString());
    Thread.Sleep(30000);
    localContext.Trace("Wakeup at {0}", DateTime.Now.ToLongTimeString());
    //var permission = new WebPermission(PermissionState.Unrestricted);
    //permission.Demand();
    localContext.Trace("Send to Wrapper");
    using (var wc = new WebClient())
    {
        wc.Headers.Add(HttpRequestHeader.Accept, "application/json");
        wc.Headers.Add(HttpRequestHeader.ContentType, "application/json");
        wc.UploadStringCompleted += wc_UploadStringCompleted;
        string wrapperResponse = string.Empty;
        try
        {
            var uri = new Uri(HttpUrl);
            localContext.Trace(string.Concat("Send to:", uri.ToString()));
            localContext.Trace(string.Concat("Protocol: ", System.Net.ServicePointManager.SecurityProtocol.ToString()));
wc.UploadStringAsync(new Uri(HttpUrl), json); //wrapperResponse = wc.UploadString(new Uri(HttpUrl), json); //_localContext.Trace(string.Concat("Wrapper response: ", wrapperResponse)); } catch (Exception ex) { throw ex; } finally { wc.UploadStringCompleted -= wc_UploadStringCompleted; } } } catch (WebException exception) { string str = string.Empty; if (exception.Response != null) { using (StreamReader reader = new StreamReader(exception.Response.GetResponseStream())) { str = reader.ReadToEnd(); } exception.Response.Close(); } var msg = string.Empty; if (exception.Status == WebExceptionStatus.Timeout) { msg = "The timeout elapsed while attempting to issue the request."; localContext.Trace(msg); throw new InvalidPluginExecutionException(msg, exception); } msg = String.Format(CultureInfo.InvariantCulture, "A Web exception occurred while attempting to issue the request\nException message: {0}\nResponse: {1}\n", exception.Message, str); localContext.Trace(msg); throw new InvalidPluginExecutionException(msg, exception); } catch (Exception ex) { localContext.Trace("Generic Exception"); localContext.Trace(ex.Message); throw new InvalidPluginExecutionException("Generic Exception", ex); } finally { localContext.Trace("Communication to Wrapper finished"); }

I've already deployed my solution on Dynamics 365 Version 1612 (8.2.3.114) and it's working fine.

Now Dynamics has been updated to new version Version 1710 (9.1.0.646) and plugin no longer work.

It's do not release any error, but the webservice is not called.

This is the trace log of plugin:

Entered PostDistributeCampaignActivity.Execute()
Plugin Invoked from 40.85.85.245
Plugin has started
Check which is the status reason:
The status reason code is 6
Get CampaignActivity
Get ChannelType
Check ChannelType
Create body object
Serialize body object
{"ActivityId":"c41bd0db-72f8-e811-a966-000d3ab496c3","FlowType":3}
Sleep at 9:48:23 AM
Wakeup at 9:48:53 AM
Send to Wrapper
Send to:myserver/.../PUBLISH_DISTRIBUTED
Protocol: Ssl3, Tls, Tls11, Tls12
Communication to Wrapper finished
Exiting PostDistributeCampaignActivity.Execute()



So, in production environment, old version of dynamics still exists, and plugin is still working, but in test environment dynamics has besn updated to the new versione and plugin seems to work, but no call comes to webservice.

Any idea?

Displaying value from SalesOrderLineEntity

$
0
0

Hi Experts,

I have created one field in SalesOrderLineEntity and then created a classes with following code:

public class GetName
{
    public static server str getName()
    {
        str expression;
        str custid = SysComputedColumn::returnField(tableStr(SalesOrderLineEntity),identifierStr(SalesLine),
            fieldStr(SalesLine,CustAccount));
        expression = 'select name from dirpartytable where dirpartytable.recid == ' + int642Str(CustTable::find(custid).Party);
            

        return custid;
    }

}

And then set this properties:



I want to display the name but its not working.

Please suggest me the right path.

Thanks

Sona Jee







How to hide a command Bar button

$
0
0

Hi All,

I am trying to hide a command bar button on entity quote based on the "statuscode", I have the below displayRule using ribbon workbench:

What I'm doing wrong. Please someone with experience should help. Thanks 

invoices migration 2009 to R3

$
0
0

Hello,

can you please share a blog or demo migrating invoices from 2009 or previous versions to 2012 R3

Regards

Priya

error The document hash does not match the hash in the XML. The document may have been changed since last read

$
0
0

Please anybody provides with info regarding this issue. if i do consistency check, it might help.

Upgrade 7.2 to 8.1 without Code Upgrade and without Deployable Package

$
0
0

Are there any issues performing the data upgrade in a Cloud Hosted Dev environment, and afterwards upgrade and data upgrade the Standard UAT environment?

The situation is that there are no customizations and no hotfixes in the Azure DevOps Main branch.

The PROD and UAT environments contain an ISV module, but this module is NOT desired/planned to have in the 8.1 PROD and UAT environments.


Multi-Select Dropdown on Form in D365 For Finance and Operations

$
0
0

Hi Guys,

Can anyone please show me a form in D365 AX 7 for Finance and Operations where Multi-Selection is been used. I'll like to implement this feature but will like to see how it even looks like on any form.

Thank you.

Microsoft Dynamics Add on Portal not showing custom built entity forms

$
0
0

Hi guys, 

I am learning about Microsoft dynamics CRM portal. I am customizing customer self service portal.I am having issues customizing the portal.

I am not able to show custom Entity Form(Lead Entity) on Custom page it showing blank page no form no input elements. But if I choose existing Entity form that comes preinstalled in managed solution, It works fine. 

But the challenge here is showing custom entity form on custom page. Please let me know what i am missing.

Thanks in Advance

Product categories field in released products in Data Migration Framework??

$
0
0

Hi,

I want to update 568 released products to fill in the product categories field so i can use it in purchase requisition.

What hinders me is that I cant find the field name from data management exported entity nor Open in Excel released products form.

Does anyone know what field is that called on Data management exported entity or Open in Excel released products form?

Thx

Add Private Preview Features. Self service database movement and Sandbox data upgrade

$
0
0

We have completed the registration for the above preview features 3 work days ago. The registration addresses were mentioned in the Techtalk on upgrade to One Version.

Will we receive an activation code so that the features can be added?

How does the Private preview features differ from what is currently possible in LCS?

How to show in a form field (that is a RefRecId link field) a TitleField1 of referenced table

$
0
0

Hi guys,

I need to  show in a form field (that is a RefRecId field, int64) a TitleField1 of referenced table.

I can't use a differente field because I need to use the link pre-existent.

Please, see below:

Thanks all of you!

Viewing all 143529 articles
Browse latest View live


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