Export UDO to XML on SAP B1 - sapb1

I want to export the UDOs and its predefined forms to XML on SAP B1 client.
Is it possible on SAP B1 client? How?
Thanks

There is no way to do it through the SAP Business One Interface. You will have to use DI API.
SAPbobsCOM.UserObjectsMD oUDO = (SAPbobsCOM.UserObjectsMD)SBOSharedConnection.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
oUDO.GetByKey(code);
oUDO.GetAsXML();

if your DB have screenprinter then you can also export the UDO through the UI

Related

De-identified data from BigQuery with DLP

I would like to de-identified my PII data that already in BiqQuery with Google DLP, and store the result in another table in BigQuery. Is that possible ? and how to do that ?
Currently the main recommendation is to use dataflow.
https://github.com/GoogleCloudPlatform/dlp-dataflow-deidentification
The different methods for De-Indentifying sensitive data in DLP are available through API, for example, we can use replaceConfig to replace from:
My email address is astacko#example.com.
to
My email address is [email-address].
by using an API request like this:
"deidentifyConfig":{
"infoTypeTransformations":{
"transformations":[
{
"infoTypes":[
{
"name":"EMAIL_ADDRESS"
}
],
"primitiveTransformation":{
"replaceConfig":{
"newValue":{
"stringValue":"[email-address]"
}
}
}
}
]
}
}
So, for your use case you would need to integrate the De-identifying API into a flow that reads from BigQuery, perform the De-identifying transformations and writes back to BigQuery.
Cloud DLP in action is a Google post that talks about this. It points out to Dataflow to achieve this use case. Please refer to this Reference Architecture to have an idea of how this can work, in there you will find some Java classes examples. You can modify it if needed so that you can ingest it to BigQuery.
As a quick workaround, I would consider moving the tables with PII into a dataset with restricted access. Then, in a new dataset, create a view that does not include the sensitive columns. Give users query access to only the dataset with the view, and not the private dataset.
https://cloud.google.com/bigquery/docs/share-access-views
This feature is currently in preview (October 2022). Talk to your Google Cloud sales rep to see if it can be enabled for your project.

JIRA REST API FOR EXCEL EXPORT

I need to export details of a project into a excel. Is there any API which will export JIRA details to EXCEL?
JIRA has a REST API and the generic Web Data Connector inside Excel will happily connect, make a query based on the criteria you specify in the URL, and convert the returned JSON data into a table of data in Excel.

Extend backend models (Data/DTO) and sync with Spartacus

What is the approach if want to add a new attribute to the Product(Model/Data/DTO) in SAP Commerce Cloud and
wanna to access it in Spartacus (using Spartacus ProductService)?
How to introduce the attribute to the Product model in Spartacus and get it populated with the value from the backend?
This question can be seen as a general question how to apply this requirement to all models and keeping the models in sync between backend and frontend.
Thank you in advance.
In order to fetch additional attributes, you can configure the endpoint. See https://sap.github.io/cloud-commerce-spartacus-storefront-docs/connecting-to-other-systems/#configuring-endpoints for more information. There's no need to convert (normalize) the data necessarily, but you could do this as well. This is covered in the same documentation. And you could even replace the standard OCC adapters by a custom adapter if you need to adapt a 3rd party backend.
Once the data is loaded from the backend, it will be stored in the central store, and exposed by the facade without limitation. You might however want to enhance the default typing, in order to benefit from type-safety and not fallback to any. You can do this with the following:
// intro custom typing
interface CustomProduct extends Product {
customAttribute?: string;
}
// use typing for the observed data
product$: Observable<CustomProduct> = this.currentProductService.getProduct()

How to compare component versions for sending notifications?

I am working with Workflows (Automatic Activities).
I would like to show which parts of the component have been modified via e-mail.
I guess I can use something like:
my_server/views/ASP/CompareFrameset.asp?SystemIdentifier=tcm:25-18409
But I don't know how to use the attribute "SystemIdentifier".
Thank you,
I think that you try to build the next link:
http://<yourServer>/Views/ASP/CompareFrameset.asp?tds51cmwknlcom&URI=Compare&CONTEXTURI=tcm:25-24905&FILTER=auto&ITEMTYPE=&MODE=
Assuming that you only want to include a link to the comparing functionality: The System identifier is the URI of the Component currently in Workflow.
I believe this works in a similar way with Tridion 2009 - check the documentation for "Comparing Activities" in Tridion 2011 SP1. In short: you're reinventing the wheel.
For the record, the System Identifier is a unique ID used in the MDVC to distinguish between open CME sessions.
It combines information such as the User ID, the version of the Content Manager, and the server name. You can read the current System Idenfifier from the SystemIdentifier property of the MDVC.

Commerce Server 2009 API - Get All Profiles

Is there a way, using the CS2009 API, to get all profiles? I have trying to migrate to the CS2009 API, and I need to be able to get all profiles from a custom profile.
It looks like with using "CommerceQuery", you are required to pass a field that is either a "primary", "unique", or "join". This limits my ability to get all profiles.
Any suggestions?
there is not an API on CS 2099 to get all profiles... you can use CS 2007 core API to search on the profile system
http://ecommerceondotnet.blogspot.it/2009/12/search-on-profile-system.html
... or even better make a sql query on your database..
I would concur with Stelio. I would also recommend writing your own sequence component to do this using custom SQL, it will give you more control over your query and performance. I would not recommend using the API. Checkout the proile API code with .NET reflector, or take a gander at the stored procedures in the _profiles database and you will see what I mean.