Unable to get the custom field value in WorkItem - excel

I am having custom field value in Excel. When I am trying to publish to TFS2018, I am getting empty values.
Tried adding field names in WIT file (XML format) and imported to the project. I am able to see the custom field in TFS also.
<FIELD name="OldID" refname="Test.OldID" type="Integer">
<HELPTEXT>Defines OLDID.</HELPTEXT>
<WHENNOTCHANGED field="Test.OldID">
<ALLOWEXISTINGVALUE />
</WHENNOTCHANGED>
<ALLOWEXISTINGVALUE />
</FIELD>
I have Custom field value in Excel which should be populated in TFS 2018 while publish it.

Somehow I have identified the value to be imported from excel to TFS custom field.
Created a new query including custom field, then open that query from Visual Studio in excel.
Once opened, copy the value to custom field and publish it.
Query
Work Item

Related

Pre-filtering Microsoft Dynamic 365 SSRS not filtering base on opened record

I been dealing with a very unfriendly situation and cannot wrap my head around it. I applied same approach to another entity and it is working as expected but not sure why I cannot get it to work with this particular entity.
I am creating a report in SSRS and wanna make sure once an end user opens a record Pre-filtering applies to the opened record. (Record is Release of information (Roi for short))
in my SSRS I created added a SQL data source named "MSCRM_DataSource"
then I added my DataSet which is this:
-DataSets:
+Release_Of_Information
In my data set I have a simple code:
SELECT Column1, Column2, Column3
FROM FilteredReleaseOfInformation AS T1
WHERE ROIid = #SelectedForm
Then I added another DataSet and Named it as below:
+CRMAF_RoiID
above Data set has this code:
SELECT ROIid AS FormID
FROM FilteredReleaseOfInformation AS CRMAF_RoiID
Then I went for my parameters and first added one Parameter as follow.
General Tab:
Name: "CRMAF_RoiID"
Data Type: "Text"
Select Parameter Visibility: "internal"
Default Values tab:
Specify values:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="ReleaseOfInformation">
<attribute name="RoiID" />
</entity>
</fetch>
Lastly I added SelectedForm parameter as follows:
General Tab
Name: SelectedForm
Data type: Text
Parameter visibility: Hidden
Available Values Tab
Get values from a query
Dataset: CRMAF_RoiID
Value Field: FormID
Label Field: FormID
Default Values Tab*
Get values from a query
DataSet: CRMAF_RoiID
Value field: FormID
When I go to my test environment, report runs, but picks the first GUID in the query and not the associated record that is opened therefore no matter what record is opened it shows the info of first person RoiID.
**PS: Report is in my solution
**PS: I checked and ROIid is searchable on the entity
Is there anything that comes to your mind that I am missing? I spent so long researching and yet couldn't get this form work.
I have another entity that is working fine I do not know why this one has issue.
On your Dynamic-CRM check something and make sure the report is running on Current Record
if it is set on run for all related records Simply delete the report in your solution and add it again (preferably with a new name just add an _V2 or _V3 at the end of the name and set it up again.) this should do the trick as it did for me. I believe there is a bug in Dynamic CRM.

Unable to save new record to the sharepoint list

I am creating a leave system for my company through Sharepoint. I tried customizing the edit form using powerapps. So when I fill all the records in edit form as shown in powerapp.png, and click on save button as in normal sharepoint form, my fields get reset to their defaults and i get 'entry required or invalid value'(see the attachment named 'powerapp.png') and the item isn't added to my sharepoint list.
However the record does get added to list if using normal sharepoint form as shown in normal_sharepoint.png.
Note: I have created a custom text field in powerapp.png which calculates me the leave days excluding weekdays and weekends. ( this is a major requirement)
Also I have enabled content-approval in my sharepoint list because the item is sent to manager for approval. Hence a content-type data field equal to 'Item' always shows up when I open the edit form in normal sharepoint and some unique id is autogenerated. However I enabled the content type field in powerapps too but still the same error.
powerapp.png
normal_sharepoint.png
You need to ensure you have filled out all the fields as those asterisked are Required fields.
Also on the datacard of each of the fields on powerapps, you can change the required property to false if any of the fields is not cumpolsory

Auto sum fields in visual studio

When I add fields for this report Visual Studio automatically puts "Sum" in front of the field. Can anyone tell me what this is/how to fix it? For example:
I am trying to add the field "AorFCrnt" into a table. On the drop down list the field is labeled correctly but when it is added to the table it reads [Sum(AorFCrnt)]. It does the same thing for any other field I have available.
Thanks!

Update field datatype after publishing DAC Extension

I have created a customization which contains DAC extension. There are few extra fields added to Stock Item screen (InventoryItem table). After publishing, the customer had a requirements for one of the field to change its datatype from string to bool. I did updated in customization and published it. However, it did not updated in database. As a result it was throwing an error. Is there anything I am missing here? Please suggest.
Acumatica doesn't delete columns out of the database as a result of a change in your customization. You have two options here, you can drop the column via SQL command and publish, or more realistically, you can just create a new UDF with a different name and change your code.

How to reference new field if it is DAC Extension

I have a couple of new fields in Sales Order (Screen ID - SM204505). I have added these fields from customization project > Data Access. Once published this customization project all the new fields are created in SOOrder table.
Now I want to reference these new fields in my Customization Project in Visual Studio to fill some other values (i.e. add some more business logic).
For example, there is a custom field called UsrReasonCode added to SOOrder table. And then I want to write some business logic to get this value from SOOrder and fill into some other table (i.e. Document Line item > ReasonCode)
It is working if I create Table Extension but I am not sure how to reference if I add it through DAC Extension. Please suggest.
You can reference extension fields by using extension object
like that:
DocExt ext=PXCache<Doc>.GetExtension<DocExt>(doc);
This will get extension object DocExt related to the original Doc object. So you can reference extension fields like ext.UsrField.
To read more about that you can download T300 training from acumatica university

Resources