Friday, July 19, 2013

Step to enable intelligence for MS CRM Form Scripting in Visual Studio

MS CRM Developers when working with SDK are given a quick and easy way to add analytics using the intelligence while coding through VS. But comparatively when they work with Xrm scripting they find it difficult to know the syntax and usually spend more time in troubleshooting for a syntax error than other issues.

But MS provides options to enable the intelligence for MS CRM Xrm scripting in Visual Studio by installing the Xrm.Page.Library Template. Below are the step for the same:

1.               Download the latest Microsoft Dynamics CRM SDK (v5.0.14).
2.               Install the XRM.page.Library template using the exe.file. This will be  located in the following path: SDK\Templates\Xrm.PageScriptProjectTemplate\xrmpagescriptdevelopmentprojectcs_vs2010


3.               Select the option based on your Visual Studio edition and VB/CS
a.          Xrmpagescriptdevelopmentprojectcs_vs2010
b.          Xrmpagescriptdevelopmentprojectcs_vs2012
c.           Xrmpagescriptdevelopmentprojectvb_vs2010
d.          Xrmpagescriptdevelopmentprojectvb_vs2012



4.               Create your JS file with the reference of XrmPageTemplate.js.
/// <reference path="XrmPageTemplate.js" />
5.               Now the intelligence will be enabled in Visual Studio.


I hope this blog will more helpful for the CRM developers!!!!!!


Friday, July 5, 2013

Viewing Documents from One Responsibility Center

Whats this all about ??
Consider a scenario where a company has different work locations/branches across the country like where each location handles their own Sales Operation. Ideally from an end user perspective the requirement would be in a way where users from one location should only see the related records & documents from his/her location and not the Sale Orders from other Locations.
How this can be achieved?
The concept of Responsibility center plays a major role in Dynamics NAV where you can set up users in their daily routines so that the program retrieves only the documents relevant for their particular work areas. Users are usually associated with one responsibility center and work only with documents related to specific application areas at that particular center.
To set this up, you assign responsibility centers to users in three basic functional areas: Purchase & Payables, Sales & Receivables and Service Management.
Case Study:
Company named “ABC” has its branches across 3 different locations/branches namely ABC Loc1, ABC Loc2 and ABC Loc3 where each of the company handles its Sales operations individually and users from one location/branch must be restricted in viewing details of other branch
Keeping the above scenario in mind first we need to create all the branches of Company as responsibility centers
1. Create the Responsibility centers for the ABC Loc1, ABC Loc2 and ABC Loc3 like below
 

2. Open the User Setup window.

3. Select the user you want to assign a responsibility center to. If the user not is on the list, you must enter a user ID in the User ID field.
4. In the Sales Resp. Ctr. Filter field, enter the responsibility center where the user will have tasks related to Sales & Receivables.
 

Now for each and every Sales related screen\form we need to write the Code on “On Open Form” Trigger
Here I have created two functions to achieve this functionality.
Which are used to invoke the related responsibility filters (here ABC Locations) 
 Function to filter the sales order with responsibility center 

Finally function call to initialize the Responsibility center during OnOpenForm()
 
To create the new Sale orders by End users with in their respective locations, we need to call the function GetSalesFilter() from User Setup Management Code unit on
Form - OnNewRecord() Trigger.
With this we can able to full fill the requirement.
So that the users assigned to ABC Loc1 can only see ABC Loc1 Sale Orders and can create the Sale orders of same.
This is how we can achieve the functionality of accessing related documents to the related users.
Note: Users will still be able to view all posted documents and ledger entries across all the locations. This can be customized to restrict as how a responsibility center behaves.

How to use calculated field in the smartlist

Smartlist report can be used the calculated fields which is created by using smartlist builder. Smartlist builder has some inbuilt functions to create calculated fields. Those functions are available at function lists and they are categorized into five groups.

• Arithmetic Operators

• Date Functions
• Mathematical Functions
• System Functions
• String Functions

Below are the detailed steps to create calculated fields using Smartlist builder.


To add a calculated field:

1. Open or create smartlist report in Smartlist Builder.
2. Click calculations to open the calculated field window. This window displays a list of calculated fields created for particular Smartlist.



3. Click the Add button above the calculated fields list to open the Add calculated field window.



4. Enter the field name of the calculated field. This is the name of the field that will be displayed in Smartlist.
5. Select the field type.
6. Write the script using inbuilt functions.
7. Click save button.



8. Now the calculated field is added in the smartlist report.
9. Mark the Display and Default check box.




10. Now the calculated field (“Aged Days”) is added for displaying the data in smartlist report.
11. Click “Save” button.
12. Go to Microsoft Dynamics GP Ã  Smartlist to open smartlist window and expand the report(E.g. Sample).



Hope this Helps!!!





Keyboard & Mouse Shortcuts in Dynamics SL - Value Add to SL users

Here are the lists of Key Board shortcuts to add more value for Dynamics SL Users.

F1 – brings up the help screen for the active working screen.

F2 – Locate the cursors in the active field with selection. User can change the values easily without mouse help.
Date Field vs F2 Key
If users press the F2 key in date field,the Relative Date (98.240.00) popup screen will appear for changing the date value using Relative/Absolute template.
This way user can set the Day, Month & Year of the date easily without any confusion against the system date formats settings.

Period Field vs F2 Key
If users press the F2 key in Period field,the Relative Period (98.250.00) popup screen will appear for changing the period value using Relative/Absolute template.



F3 or Double-right-click – brings up the possible values list for the current field (if one exists). This will only ever work on string fields and dates.

SHIFT + F3 – brings up the Look up extended possible values for a field

F4 – allows the user to change the screen between Form and Grid view for the active grid level. Also Property window appears when we press F4 in standard screen customization.

F5 – clears the value in the active field. If the field is required, this function will generate an error message and not work, but for any other field it will allow you to clear the existing value.

F6 – brings up the Insert Object wizard in Standard screen customization

F7 – sets the active date field to the current business date and shows up the visual basic editor in standard screen customization.

F9 – brings up the notes screen for the active level (if there is a note for that level).

F10 – brings focus to the SL menu screen.

DELETE - Used to delete the focused detail line, focus on entity Delete entity after confirmation. Delete either batch or document after confirmation.

INSERT- Insert new row, entity and batch or document after confirmation.

CTRL + S - After completing error checks, save all changes in the current screen.

CTRL + E - Exports the grid detail to an Excel Workbook.
Note: In Dynamics SL 2011 user can export the possible values lists to Excel using CTRL+E.

ESC - Abandons all changes in the current screen since last save and refreshes display.

ALT + F4 - Closes the active screen.

SHIFT + F4 – appears the customized property browser for the selected control.

HOME – moves the cursor to the first segment of selected row in the Grid.

END – moves the cursor to the last segment of selected row in the Grid.

CTRL + HOME - moves the cursor to the first segment of first row in the Grid.

CTRL + END - moves the cursor to the last segment of last row in the Grid.

Keyboard shortcuts combine the ALT key with another key to take you to an area of a screen or to open a menu. The additional key is identified by an underscore (_) below a letter in the name of a screen area or menu option. For example, if we press ALT+ A opens up the Action Menu in the screen.

I hope these tips are useful in our day to day Dynamics SL transactions :)



Friday, June 21, 2013


How to Handle re-work process in Navision:
Consider a scenario where a product has been produced/Manufactured and transferred to another location. The manufactured product has some defects and has been returned for some rework.
Required Input
  • We need to create the Item variants for the items
Rework quantity creation process:
Steps to create the production order
  •  At the time of posting consumption Journals against the production order we have to select the Item with Variant code for the corresponding item
  •  We need to create separate line for the re-work quantity in consumption journals screen, for this line we need to enter the rework quantity with negative sign in the consumption quantity field. 
  •  Post the Consumption journals.
  •  In the output journals we need to mention the output qty as less qty.(by entering the scrap quantity (if there is any) and calculate the output quantity by selecting the option->Update Scrap Qty)
  •  Post the output journals.

Here we will explain the scenario with example.
Before finishing the production order, The Item (Test) has available quantity of 90 in Inventory
  • We have created the production order for the “Test” with 200 Quantity (refer screen shot below)

  • Now we are going to post the Consumption for this Production order, here our production order Rework Quantity is: 50
  • Post the consumption journal.
  • Post the Output Journal (ref image given below)
  • Finish the production order.
  • After posting if we go to the respective finished good, we will see the posted entries with different quantities in different lines. Like below 

Here we refer the first image of the Item on Inventory was 90 (i.e. old)
Now quantity is: 290
200 quantities were posted through consumption journal, but in inventory it will reflect with different names as mentioned in the image below (lines marked in blue).
Item without variant code quantity is: 150
With item –variant Code quantity is : 50

 
Making re-work production Order:
Now we are producing the Re-work production order to produce the FG. From the rework quantity only we are going produce the finished product.


  1. Go the consumption journal,
  2. Select the item which was posted with ‘ –ve’ quantity and with variant code.
  3. Enter the consumption qty as positive quantity.
  4. Post the consumption journal.

Now same way you need to post the output journals with the finished quantity.
So now the quantity with Variant code in the Main Item will be reduced, and it is consumed for the other production order.

Enable Company Selection Tab in ROI – Dynamics SL 6.5

A simple post this week explaining the way to enable multi-company option in SL 6.5!

The company selection is applicable for multi-company databases. In Dynamics SL 6.5, the company selection can be achieved only through the SL setups & Report Customizations whereas the same can be achieved in Dynamics SL 7 & 2011 without any setups & report changes.


Given below are the simple steps to enable the Company selection tab in Report ROI of Dynamics SL 6.5.

Step 1: Enable multi-company selection for the custom report.
·         On the Utility menu, click Report Control Maintenance.
·         In the Report Number Field, type the Custom report number, and then click Control Options.
·         Click to select the Multi-Company Selection Allowed check box, and then click OK.
·         Click Save, and then close the Report Control Maintenance (98.300.00) screen.

Step 2: Create links in your custom report to enable the access to company-specific data.
·         Open the SL report with multi company compatibility.
·         On the Database menu, click Database Expert.
·         In the Database Expert dialog box, locate the Available Data Sources section, and then expand Current Connections.
·         Expand the appropriate Microsoft Solomon application database, expand the second instance of this application database, and then expand Tables.
·         Click RptCompany, and then click the Add arrow to add the RptCompany table to the Selected Tables section.
·         Click the Links tab.
·         Smart Linking automatically creates links between the RptCompany table and the existing tables in the CpnyID field.
·         If the links are incorrect, click Clear Links. Then, manually create the links.
·         Click OK.

Step 3: Add the RI_ID formula to the report.
·         On the Report menu, click Select Expert.
·         In the Choose Field dialog box, click RI_ID, and then click OK.
·         In the Select Expert dialog box, click the RptCompany. RI_ID tab, and then click formula in the list that appears.
·         In the formula box, type the following:
{RptCompany.RI_ID} = tonumber (RIPARAM ("RI_ID"))
·         Click OK.
·         Click Save, and then close Crystal Reports. And then run the report through Solomon. 

Hope this post is helpful!!!

Friday, June 14, 2013

How to recreate X12 810 invoices in Dynamics SL 7.0 FP1?

There were few Customer instances where the outbound 810 files sent from Dynamics SL to the trading partner got rejected due to the missing or incorrect data. The user may need to correct the data and want to send the X12 810 files again.  While we explored and identified the way to do this in Dynamics SL 7.0 FP1, we thought of adding in our blog to help other EDI users. 

Recreate Outbound EDI Transactions (44.030.00): 

With this screen, the user can recreate the outbound files such as Invoices, Purchase orders, Shippers and Purchase Order Acknowledgements and can send to the trading partner.
This screen allows the user to specify selection criteria and selectively choose the records to be resent for each of the outbound transaction types. This process will reset the transactions selected so that the next time if the outbound process for the transaction type runs, data will be written to the outbound Common File Interface.

Following are the steps to recreate the Outbound invoice
·         Enter the Customer id in Search Criteria. If you are sure about the other filtering criteria like Invoice # and Date, enter the values in the respective fields.
·         Click  “Refresh” button  and system will load all the outbound invoices that were sent already. The 810 data to be sent newly to the trading partner won't be displayed in this screen.
·         Select the Outbound invoice using “Selected” check box.
·         Click “Begin processing” button to recreate the outbound files.
 
Create Outbound EDI Invoices (44.402.00)
Once the Outbound EDI Invoice selection has been completed, the user need to open the Create Outbound EDI Invoices (44.402.00) under E-Commerce Gateway module in Dynamics SL.
 

Click “Begin processing” button. 

This screen will send all the new EDI invoices to VAN/FTP. This screen will also identify the invoices selected in the Recreate Outbound EDI Transactions screen and resend those as the outbound 810 X12 files.

Hope this post is helpful!