Hello,
Is it possible to get the path of the folder from where the file is being selected from fileUpload control?
I want to access the folder whenever a file is selected from file upload. Can anyone please guide me on this.
Thanks.
Hello,
Is it possible to get the path of the folder from where the file is being selected from fileUpload control?
I want to access the folder whenever a file is selected from file upload. Can anyone please guide me on this.
Thanks.
Hi
A sysQueryForm is not filtering by a field correctly. This field is from a different table that has been joined after modifying the sysquery.
How to add two different tables as a data source of a query object and filter by the field of the joined table on a sys query form?
I am following this tutorial:
However I have no clue how to access the System administration menu in Finance and Operations.
Can someone provide me a step by step on how to go from https://lcs.dynamics.com/v2 to the System Administration Menu in Finance and Operations?
Thanks.
i need to use static variable to get it's value in any class in my solution .
i created a class named Myclass
public class Myclass {
public static str myVar ;
}
an other class where i need to set a value to my variable
public class MyOtherClass {
Myclass myclass;
myclass.myVar = "valeur";
}
but i get errors .
Hi,
I need to copy a DB from Azure SQL (UAT) to my local VM SQL.
I cant use any of the below steps.
1. Moving the DB from Azure SQL to Azure storage and then download from it Local VM.
2. Adding the VM IP in the Trusted store in Azure subscription.
Apart from this can anyone how to complete this tasks.
Thanks.
Hi,
I have a problem with a custom Web Service deployed as a AIF Inbound Port with HTML Adapter and with anonymous authentication activated at IIS. The reason for that is because we need to provide a Web Service to SAP...
When I try to use the Web Service, just from a sample Visual Studio sample adding the Service Reference I just get the error "The HTTP request is unauthorized with Client authentication scheme ´Negotiate´. The authentication header received from the Server was ''. "The remote Server returned an error: (401) Unauthorized."
Maybe someone has an idea or a nice like with the steps to check in order to create this simple web Service?
Thanks
I was looking at this post and was wondering if i can do similar stuff in c#?
https://docs.microsoft.com/en-us/dynamicsax-2012/developer/using-expressions-in-query-ranges
It should be something like this except i can't compile with errors now..
var provider = new AXQueryProvider(null);
QueryCollection<TestObject> itemList = new QueryCollection<TestObject>(provider);
var query = itemList.Where("id= @0 && name = @1", 1, "firstname lastname");
I am trying to build a report with an AOT query. I want my query's ranges to default to SysQueryRangeUtil::valueUnlimited() if the user did not enter a value. I tried a few things and googled a lot. I found this page https://dataqueen.unlimitedviz.com/2011/06/how-to-default-to-all-in-an-ssrs-multi-select-parameter/ but it seems like a lot of work :(
For clarity: The query's ranges are shown in the report dialog. And then if they are left open I get zero results in my report. I assumed this is because the query still filters on the empty ranges - I get results if I specify applicable ranges.
I've done a few reports following the DP, Contract and Controller path. But I am trying to do this one with only an AOT query (and View). I reasoned if I can do it this way it might speed up work in future.
Is there a way to default to an unlimited query range if the value is not filled in?
Thanks for reading
Hi,
Is there any way to map the new fields added in table extension to a new field added in a map through customisation.
Because, I have added new fields into the map through customisation. I want to map this new field to a new field in table extension. In my scenario, map is already been added in the table mappings. So, I no need to add the map again.
But I cant able to view the new field added in map, in the mappings node.
I have done synchronising database and also built the models ins D365. But mappings didnt list the newly added fields in map.
Is there any way to solve this problem?
Thanks in advance,
Elamathi. S
Hi,
there's a query related to exceptional handling. In C# or .net we can use try catch method and print our own customized message, but as per dynamics we can't do that . We just throw an exception which generally system generate. I want to know that can we throw our customized message in try catch method ? if anyone have answer then do let me know with example .
i've searched a class CLRInterpo class but don't know how to consume it in try catch method
Hi all,
I had a report which is based on only Dp class and a controller class and i dont have a contract class, used only dynamic parameter? but when i open the report through form, i am getting all the record details , i need only the current record details to be print on the form!! how to acheive this.!!please suggest
In list page/transactions page -.>i used a menu item button which points to output menuitem ->which inturn calls the controller class for report.
Hi all,
I had costanalysis report which is based on a query (comprises of Header table and line table), when i open the form and select a record and will click on the report , it is opening the parameter dialog(but no parameters to select only dynamic parameter included) and i click on ok, it is fetching all the record details instead of displaying the particular record details on the report,.?
Note: on listpage/transactions page i used a menu item button->points to Output menuitem->inturn calls the report directly.
how to overcome this.? as i am not aware on how to use controller class.. any suggestions pls
Hi Martin, i am using above approach to create purchase order but unable to read "purchaseOrderLines" and "productAttribute" contract from Json in Dynamics 365 Fin and Ops.
Json
{ "purchaseOrderHeader": { "orderNumber": 123, "orderType": null, "vendorAccount": "0001", "shipToCode": null, "orderCreationDate": null, "purchaseOrderLines": [{ "orderDetailsId": 1, "itemNumber": "Apple 7", "productAttribute": [{ "productAttributeName": "COLOR", "productAttributeValue": "RED" }], "quantity": 10, "unit": "ea", "lineStatus": "", "costUnit": 1000, "netAmount": 10000, "productHierarchy": "" }] }
Contract method
[DataMemberAttribute("purchaseOrderLinesContract"), AifCollectionTypeAttribute("PurchaseOrderLines",Types::Class,classStr(PurchaseOrderLinesContract))] public List parmPurchaseOrderLinesContract(List _purchaseOrderLinesContract = purchaseOrderLinesContract) { purchaseOrderLinesContract = _purchaseOrderLinesContract; return purchaseOrderLinesContract; }
Service Class
Class PurchaseOrderService { [SysEntryPointAttribute(true)] public void createPurchaseOrder(PurchaseOrderHeaderContract contract) { ListEnumerator enumerator; List purchOrderLinesList; PurchaseOrderLinesContract purchOrderLinesContract; try { purchOrderLinesList = contract.parmPurchaseOrderLinesContract(); enumerator = purchOrderLinesList.getEnumerator(); while(enumerator.moveNext()) { purchOrderLinesContract = enumerator.current(); } } catch { throw error('Unable to create Purchase order'); } }
Unable to get "purchOrderLinesContract" and "productAttributeContract" from enumerator because enumerator return JsonObject like
[JObject:{itemNumber": "Apple 7", "orderDetailsId": 1, "quantity": 10,"unit": "ea", "lineStatus": "","costUnit": 1000,"netAmount": 10000 , "productAttribute": [{"productAttributeName": "COLOR","productAttributeValue": "RED"}]}]
Any help plzzzzz
Hi All,
Which one is better On premise Dynamics 365 or Cloud Dynamics 365?
What are all the major advantages disadvantages of Cloud Dynamics 365 over the on premise Dynamics 365.
Thanks,
Krihna
Hi Techies,
I am developing one custom SSRS report in D365 in which I have created one union query(AOT, with two views), I need to use this AOT query in my dp class to get fields from it, because normal get function of queryRun doesn't allow me to add the view here,
How to do this?
Any response is appreciated.
Thanks in advance!
Sangram
Hi community,
today I have question more about process then about solving an issue. We have prepared our ISV solution and we want to distribute it to our customers. What I am interesting for it is way to install our package from point of view of installed Binary and X++ hotfixes on those environments. I can imagine that we have installed other hotfixes on our DEV/TEST environments than a customer have.
So my question is what is need to be done to install our solution to customer? It is needed to have same hotfixes installed on customer environments before deploy package? What if there is another ISV solution? Do we need to cooperate with other vendor and check also their installed hotfixes?
Maybe silly question, but I can imagine that some hotfix we use/have could lead to some issues with other vendor solution, because they do not need/use same hotfix.
Thank you all for any insights.
Marek
I have written the c# code to consume web service using OAuth2 . The code is taken from the d365 cookbook (authenticating native client app pg 380).
Instead of console app to call the getauthentictaionheader() function, i am trying to call it in x++, which is throwing the error that this method is not found on the namespace.classname.
Code:
public static void main (Args _args)
{
namespace.classname authobj = new
namespace.classname();
authobj.GetAuthenticationHeader(); - (this line shows error)
}
Hi All,
I have a requirement to implement activities (as in vendor master) for my new form.I follwed standard codes which they followed...
and found SysPluginFactory classes which is involved...i created my own methods to implement this ...but when opening the association tab in activities form and selecting parent id i was getting "object reference not set error"
I debugged and checked it was causing from SysPluginFactory class which is there in SmmActivityParentLink class
caseIActivities = SysPluginFactory::Instance('Dynamics.AX.Application', classStr(CaseIActivities), metadataCollection);
i was unable to resolve it.has anyone faced this issue or any resolution which would be appreciated.
Thanks.
I have created customised workflow in AX7. But it is not showing in form. Can anybody can me help me on this.