Computer Science, asked by rajeshbhagat10578, 2 months ago

what is the difference between import button and publish button???

Answers

Answered by aniket94154792303
0

Answer:

When you publish an import mapping on "Targets" module, other users can not see it.

Issue

When you click the button "Publish" the text changes into "Cancel Publish" but it's not working. The console of navigator throws the following error:

Uncaught SyntaxError: Unexpected token < in JSON at position 0

at JSON.parse

at Object.success (https://crm.example.com/index.php?module=Import&action=Step1&import_module=Prospects&return_module=Prospects&return_action=index:1148:53)

at Object.handleTransactionResponse (https://crm.example.com/cache/include/javascript/sugar_grp1_yui.js?v=HqrM2QCOmCUJMC4kIkGV5w:55:4422)

at https://crm.example.com/cache/include/javascript/sugar_grp1_yui.js?v=HqrM2QCOmCUJMC4kIkGV5w:55:3935

parse @ sugar_grp1_yui.js?v=HqrM2QCOmCUJMC4kIkGV5w:262

success @ index.php?module=Import&action=Step1&import_module=Prospects&return_module=Prospects&return_action=…:1148

handleTransactionResponse @ sugar_grp1_yui.js?v=HqrM2QCOmCUJMC4kIkGV5w:55

(anonymous function) @ sugar_grp1_yui.js?v=HqrM2QCOmCUJMC4kIkGV5w:55

Expected Behavior

When you publish an import mapping other users have to see it when they use the import option.

Actual Behavior

When you publish an import mapping other users can not see it.

Steps to Reproduce

First of all we have to create the file "Targets_test.csv" with the following content:

"Last Name","Mobile","Office Phone","Home"

"Estes","(579) 711-4337","(480) 479-6818","(979) 669-1135"

"Chambers","(376) 862-2400","(339) 348-9133","(583) 987-6124"

"Sousa","(348) 930-8656","(926) 996-4659","(684) 630-2229"

Prospects Import

Enter in "Prospects" module (displayed as "Targets" module).

Once you're inside the module click the "Import Targets" option.

Upload the attached CSV sheet "Targets_test.csv", select "Create new records and update existing records" option and after click "Next".

Once you press the next button you're on the second step of the import. Click "Next".

Now you have to map the CRM fields with the CSV sheet fields. It is OK because the CSV has the same column names as CRM, so simply click "Next".

In the fourth step in the field "To save the import settings, provide a name for the saved settings:" type "prospects_mapping_test" and press "Import now".

The import is finished. Click the button "Exit".

Publish the mapping to all users

You're on the main screen of "Targets" module. Now you have to click "Import Targets" option again.

On the published mappings it will appear the mapping we saved as "prospects_mapping_test" and next to it you have two options: "Publish" and "Delete". You have to click "Publish" option. Here is when you can see the reported error on the browser console (Details at the Issue section of this bug).

At this point this fields mapping should be accessible to all users, so let's try it.

Check if mapping is accessible to another users

Login with another account and access the "Targets" module.

Go to "Import Targets" option.

Observe that in "To use pre-set import settings, select from below:" option, does not appear the "prospects_mapping_test" that we have published before with the other account.

Context

We created a custom mapping with one of our users. Now we tried to publish the specific mapping for all the users to use it, but other users can not see it.

Your Environment

SuiteCRM Version used: Versión 7.2.1, Sugar Versión 6.5.20 (Build 1001) and Versión 7.7.6, Sugar Versión 6.5.24 (Compilación 509).

Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome Versión 54.0.2840.90 (64-bit).

Environment name and version (e.g. MySQL, PHP 7):

Server version: Apache/2.4.7 (Ubuntu). Server built: Sep 23 2015 15:34:04

mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3

PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)

Operating System and version (e.g Ubuntu 16.04): Ubuntu 14.04.3 LTS x64

Similar questions